Javascript initEvent和#x2B之间有什么区别吗;dispatchEvent和jquery';s触发器(';单击';)

Javascript initEvent和#x2B之间有什么区别吗;dispatchEvent和jquery';s触发器(';单击';),javascript,jquery,Javascript,Jquery,使用initEvent创建事件和以后使用JavaScript中的dispatchEvent分派事件与使用jquery的触发器(“单击”)分派事件之间的区别是什么?jquery的触发器函数与分派不同,请参见 "The trigger function should also dispatch custom events such that code using addEventListener can catch the custom event. However, that is not hap

使用initEvent创建事件和以后使用JavaScript中的dispatchEvent分派事件与使用jquery的触发器(“单击”)分派事件之间的区别是什么?jquery的
触发器
函数与
分派
不同,请参见

"The trigger function should also dispatch custom events such that code using addEventListener can catch the custom event. However, that is not happening. In fact, that is the only of the 8 combinations listed below that does not work. We should fix this to allow better interoperability between jQuery event functions and W3C DOM event functions."

PASS: If you trigger a DOM event you can catch it using the bind function
PASS: If you trigger a DOM event you can catch it using the addEventListener function
PASS: If you trigger a custom event you can catch it using the bind function
FAIL: If you trigger a custom event you can NOT catch it using the addEventListener function
PASS: If you dispatch a DOM event you can catch it using the bind function
PASS: If you dispatch a DOM event you can catch it using the addEventListener function
PASS: If you dispatch a custom event you can catch it using the bind function
PASS: If you dispatch a custom event you can catch it using the addEventListener function