如果我延长Object
原型并尝试使用 jQuery 2.0.3 的一些功能我收到错误...
For example jsFiddle http://jsfiddle.net/436Zq/
Object.prototype.GetHashCode = function() { return 1; };
$(document).on("click", "div", function() { });
如果我这样做然后单击任何 div 我会收到错误
Uncaught TypeError: Object function () { return 1; } has no method 'exec'
为什么会发生这种情况? jQuery 中有解决方法或方法来修复此错误吗?
In this report http://bugs.jquery.com/ticket/14178他们说他们不想解决这个问题。因此,在使用 jquery 时不要使用 Object.prototype。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)