我有一个脚本,使表响应(脚)。这对我的需求非常好,但我使用了一些ajax来引入更多的表格行,但脚本不会影响这些新行。删除影响JQuery脚本?
我试图在我的ajax完成后重新启动脚本,但它不起作用。
我的问题是,我可以删除影响jquery,以便我可以在数据加载后重新应用它?
我的jQuery:
jQuery(document).ready(function ($) {
table();
$('#moreevent').click(function(){
var last = $('#the-event tr').length;
$.ajax({
type: "POST",
url: "ajax.php",
data: { levent: last }
}).done(function(data) {
$('#the-event').append(data);
cardbox();
table();
});
return false;
});
});
function cardbox(){
jQuery('.e-info-more-cont').hide();
jQuery('.e-info-more').mouseover(function(){
jQuery(this).css({"z-index":"1001"});
jQuery(this).nextAll(".e-info-more-cont").show();
}).mouseout(function(){
jQuery(this).nextAll(".e-info-more-cont").hide();
jQuery(this).css({"z-index":""});
});
}
function table(){
jQuery('.footable').footable();
}
已知问题:https://github.com/bradvin/FooTable/issues/32 – 2013-03-19 15:50:41
啊,这就是问题所在。我想你没有找到解决办法吗? – jhodgson4 2013-03-19 15:58:31