【发布时间】:2010-12-15 17:10:23
【问题描述】:
我正在尝试在父级上设置一个事件,该事件在 iframe 加载新页面时触发(可能通过用户单击链接)。
HTML:
<iframe name="posts" id="posts" src="edit.php">
JS:
$(document).ready(function() {
$('iframe#posts').live('load', function() {
console.log('live');
});
});
问题是console.log() 语句永远不会被触发。我怎样才能实现我想要做的事情?
【问题讨论】: