fadeOut()效果在firefox上运行正常,但在chrome上运行不正常
我有一个项目列表,每个项目旁边都有一个标准的CRUD。 我在下面添加了js函数,用于删除时淡化的项目。
这种效果在Firefox上运行得很好,但在Chrome上却没有。 它确实删除了该项目,但没有显示效果。
有人可以帮忙吗? 到底是怎么回事?
$(document).ready(function() { $('.delete_phone').bind('ajax:success', function() { $(this).closest('tr').fadeOut(); }); });
非常感谢!
使用$(document).load()
而不是$(document).ready()