需要这样的东西(以后加载的html到页面!):
$(document).on('ready', 'a', function(){ $(this).after('it works'); });
这不起作用(需要类似的事件,例如'load'或'ready'在将元素添加到页面后触发)。例如另一个事件:
$(document).on('mouseover', 'a', function(){ $(this).after('it works'); });
正常工作。有什么建议吗?
答案 0 :(得分:2)
答案 1 :(得分:0)
我不确定它是否会有所帮助,但请尝试使用.live
答案 2 :(得分:0)
$。ajaxComplete()?或者只是CSS?