use*_*089 4 javascript jquery function hide jquery-animate
$comment.animate({width: 0}, {queue:false, duration:450 }, function() {
//$comment.css({ 'display': 'block' })
$comment.hide();
});
Run Code Online (Sandbox Code Playgroud)
它不显示动画.我想我已经把功能放错了地方.
T.J*_*der 11
根据文档,如果指定选项,请在选项中包含回调,而不是单独包含:
$comment.animate({width: 0}, {
queue: false,
duration: 450,
complete: function() {
//$comment.css({ 'display': 'block' })
$comment.hide();
}
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4156 次 |
| 最近记录: |