I am using custome.js
,PIE.js
and jquery1_7_2.js
file in my jsp
我使用custome.js,派。js和jquery1_7_2。js文件在我的jsp中。
This is my custome.js and nothing more.
这是我的custome。js而已。
jQuery(document).ready(function(){
jQuery(function() {
if (window.PIE) {
jQuery('#login-box, .sign-button, .new-user-btn, .grey-btn, .code-btn, #contact-email, #contact-email .continue, #contact-email .cancel').each(function() {
PIE.attach(this);
});
}
});
})
everything working fine in all browser. But in Firefox it is showing me this error
在所有浏览器中运行良好。但是在Firefox中,它显示了这个错误。
Error: TypeError: PIE.attach is not a function
Source File: http://localhost:8080/MyApp/js/custom.js
Line: 6
Please guide me to solve this issue.
请指导我解决这个问题。
Edited: It showing me error in this line of PIE.js
编辑:它显示了我在这一行的错误。
window.attachEvent("onunload",a);f.K.sa=function(b,c,d){b.attachEvent(c,d);this.ba(function(){b.detachEvent(c,d)})}})();f.Qa=new f.ea;f.K.sa(window,"onresize",function(){f.Qa.wa()});(function(){function a(){f.mb.wa()}f.mb=new f.ea;f.K.sa(window,"onscroll",a);f.Qa.ba(a)})();(function(){function a(){c=f.kb.md()}function b(){if(c){for(var d=0,e=c.length;d
window.attachEvent(“onunload”);f.K.sa = function(b,c,d){ b.attachEvent(c,d);this.ba(函数(){ b.detachEvent(c,d)})} })();f.Qa = new f.ea;f.K.sa(窗口、“onresize”函数(){ f.Qa.wa()});(()函数(){ { f.mb.wa()}。mb = new f.ea;f.K.sa(窗口、“onscroll”);f.Qa.ba(a)})();(()函数(){ { c = f.kb.md()}函数b(){如果(c){(var d = 0,e = c.length;d
and custome.js in this line
和custome。js在这方面
PIE.attach(this);
PIE.attach(这个);
1 个解决方案
#1
9
When attaching events in order to make it cross browser perform the following:
当附加事件时,使其跨浏览器执行下列操作:
if (target.addEventListener) {
target.addEventListener(eventName, handlerName, false);
} else if (target.attachEvent) {
target.attachEvent("on" + eventName, handlerName);
} else {
target["on" + eventName] = handlerName;
}
#1
9
When attaching events in order to make it cross browser perform the following:
当附加事件时,使其跨浏览器执行下列操作:
if (target.addEventListener) {
target.addEventListener(eventName, handlerName, false);
} else if (target.attachEvent) {
target.attachEvent("on" + eventName, handlerName);
} else {
target["on" + eventName] = handlerName;
}