datatables
翻页后的jquery失效如何处理
传中...]
$(".update").click(function(){
var idval= $(this).attr("chifanbao");
layer.open({
type: 2,
title:'修改订单退回原因',
shade: 0.3,
area: ['600px', '300px'],
content: '__MODULE__/OrderTrouble/updateOrderTrouble/id/'+idval,
closeBtn: 2,
shift: 0,
maxmin: true,
moveType: 0,
cancel: function () {
location.reload();
},
end: function(){
location.reload();
},
});
});
你的描述不全面,可能是需要用
on
或者live
、delegate
绑定事件,而不是$('xxx').click