function Event(type,data,bubble)
{
var event = document.createEvent('HTMLEvents');
event.initEvent(type,bubble,true);
event.data = data;
return event;
}
function Event(type,data,bubble)
{
var event = document.createEvent('HTMLEvents');
event.initEvent(type,bubble,true);
event.data = data;
return event;
}
本文标题:事件封装(Event)
本文链接:https://www.haomeiwen.com/subject/gxvtvttx.html
网友评论