页面刷新完成后,会启动jQuery事件:
$(#id).trigger('reloaded');‘重新加载’是一个自定义事件;
我如何设置一个监听程序,以便在‘重新加载’完成后,我运行另一个函数:
我在想这个问题:
$(#id).on('reloaded',function(ev) {
alert("LAUNCH function");
});但这不管用
发布于 2013-08-29 03:44:01
您的alert()中缺少引号
它应该看起来像这样:
$('#id').on('reloaded',function(ev){
alert("LAUNCH function");
});编辑:选择器中的引号感谢@Pinocchio
https://stackoverflow.com/questions/18496723
复制相似问题