爲什麼以下不工作:觸發事件
//iframe:
window.parent.$(document).trigger('complete');
//parent window:
$(document).bind('complete', function(){
alert('Complete');
});
而下面是工作:
//iframe:
window.parent.$('body').trigger('complete');
//parent window:
$('body').bind('complete', function(){
alert('Complete');
});
?
可能重複的[觸發點擊事件在iframe父窗口](http://stackoverflow.com/questions/3521947/trigger-click-event-in-iframe-parent-window) – 2016-05-11 17:09:01