zl程序教程

您现在的位置是:首页 >  其它

当前栏目

element.dispatchEvent is not a function的解决

解决 not is Function Element
2023-09-11 14:17:21 时间

Firebug中的出错提示:

 
element.dispatchEvent is not a function  
 element.dispatchEvent(event);                       prototype.js (第 5734 行)  
出错原因:同时引用了prototype和jQuery,我这儿引用的版本,prototype是1.7,jQuery测试了1.4.3和1.6.1版本。
申明:这个方法我也没测。