可能重复:
我使用的是Box2dJS库,它使用的是原型,因此我必须包括原型库才能工作。我没有在我的主脚本中使用任何原型代码,只有Box2d对象使用原型。我在脚本中使用JQuery,由于我包含了prototype,jQuery事件似乎没有触发。
以下是相关的JS代码:
$.noConflict();
jQuery(document).ready(function(){
init();
});
function init(){
//add event handler to surrounding DIV to monitor mouse move and keystrokes
jQue