适用于Web应用程序的最佳兼容浏览器 [英] Best Compatable Browser for WebApplication

查看:127
本文介绍了适用于Web应用程序的最佳兼容浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们开发的应用程序正在使用不同的浏览器进行测试,但是Java脚本代码在Mozilla,Chrome和Opera中运行正常,但在IE9中却无法正常工作.我需要对此提出一些建议...在此先感谢.

Hi
The application which we developed was testing with different browsers but the java scripts code is working fine in Mozilla,Chrome and Opera but its not working in IE9.I need some suggestion on this...Thanks in advance.

推荐答案

如果您使用的是jQuery,请告知IE 9将不支持许多jQuery方法.要跟踪失败的原因,请执行以下步骤:-

i)在IE 9中打开应用程序.
ii)按"F12",它将打开开发人员的工具.
iii)单击控制台选项卡,然后执行失败的操作.
您将获得仅针对IE 9操作失败的确切错误.

然后,您可以采取步骤对其进行修复.

否则,您可以在JavaScript代码中调试特定方法,以获取错误背后的原因.
然后要修复它,您可以用纯JavaScript代码替换特定的jQuery方法,以便它也适用于任何版本的IE.


希望对您有帮助.
If you are using jQuery let you know that many of the jQuery methods will not be supported in IE 9. To track what is failing just follow the below steps :-

i) Open the application in IE 9.
ii) Press ''F12'' & it will open the developer''s tool.
iii) Click on console tab, and now do the operation which is failing.
You will get the exact error for which the operation is failing for IE 9 only.

Then you can take steps to fix it.

Or else you can debug the particular method in JavaScript code to get the reason behind the error.

Then to fix it you can replace the particular jQuery method by pure JavaScript code so that it will work for any version of IE also.


Hope this will be of help for you.


这篇关于适用于Web应用程序的最佳兼容浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆