<input type="button" οnclick="triggerEvent()" value="触发事件"/>
function triggerEvent() {
top.$(top).trigger('myevent', {num:3});
}
top.$(top).on('myevent', function(event, data){
alert(data)
});
<input type="button" οnclick="triggerEvent()" value="触发事件"/>
function triggerEvent() {
top.$(top).trigger('myevent', {num:3});
}
top.$(top).on('myevent', function(event, data){
alert(data)
});