首页 >> 文摘 >> JAVASCRIPT

FF触发事件方式

采集日期:2008-5-2作者:Fenrir(注:本数据由系统自动采集,内容与BHCODE无关)
[edit] Summary Creates an event of the type specified. The returned object should be first initialized and can then be passed to element.dispatchEvent. [edit] Syntax var event = document.createEvent(type); event is the created Event object. type is a string that represents the type of event to be created. Possible event types include "UIEvents", "MouseEvents", "MutationEvents", and "HTMLEvents". See Notes section for details. [edit] Example This example demonstrates simulating
本周推荐
MORE
热点关注
MORE