我只是在jQuery中使用了很酷的spin.js (http://fgnass.github.com/spin.js/)。
我在旋转器上添加了类似这样的东西
$('#students-list td:nth-child(5)').live('ajax:before', function(){
$(this).append().spin(spinOpts);
});但不能在Ajax完成事件后停止它。如何对其调用stop()方法?
谢谢你们!
发布于 2011-08-21 19:23:46
您是否在使用该页面末尾列出的jQuery插件?如果是这样,请执行以下操作:
$('#students-list td:nth-child(5)').spin(false);或
$('#students-list td:nth-child(5)').data('spinner').stop();来阻止它。
https://stackoverflow.com/questions/7137749
复制相似问题