简体   繁体   English

移动设备中的Javascript错误

[英]Javascript error in mobile device

I am customizing the styles for mobile device support in all my app pages. 我正在所有应用程序页面中自定义移动设备支持的样式。 Right now I have lot of js and css includes in the layout page, I have copied them as is for the mobile layout page. 现在,我在布局页面中包含很多js和CSS,我已经将它们复制为移动布局页面。 I am getting this javascript error in the mobile device simulator browser 我在移动设备模拟器浏览器中收到此javascript错误

"Result of expresssion aa.AttachEvent[undefined] is not a function"

Right now the main layout page contains all css and js as they are there for the main app (jquery 1.7, jquery-ui.min.js and some othe jquery related files ) 现在,主布局页面包含所有用于主应用程序的css和js(jquery 1.7,jquery-ui.min.js和其他与jquery相关的文件)

How do I debug this error in mobile browser? 如何在移动浏览器中调试此错误?

have you tried using firebug? 您是否尝试过使用Firebug?

It will show you the errors and what line of code and the page it is on. 它将向您显示错误以及代码行及其所在的页面。

http://getfirebug.com/ http://getfirebug.com/

https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench https://chrome.google.com/webstore/detail/bmagokdooijbeehmkpknfglimnifench

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM