Microsoft JScript运行时错误:'jQuery.browser.msie'为null或不是对象 [英] Microsoft JScript runtime error: 'jQuery.browser.msie' is null or not an object
本文介绍了Microsoft JScript运行时错误:'jQuery.browser.msie'为null或不是对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到Microsoft JScript运行时错误:'jQuery.browser.msie'在我调试下面的代码时为null或不是对象
I got Microsoft JScript runtime error: 'jQuery.browser.msie' is null or not an object when I debugged on the code below
jQuery.support.cors = true; // fine for this line
if (jQuery.browser.msie && window.XDomainRequest) { // error displayed
我也试过
I also tried
$.support.cors = true; // fine for this line
if (j$.browser.msie && window.XDomainRequest) { // error displayed
但得到了同样的结果。我的代码出了什么问题?在此先感谢您的帮助。
推荐答案
.support.cors = true ; // 此行正常
if (j
.support.cors = true; // fine for this line if (j
.browser.msie& amp;& amp; window .XDomainRequest){ // 显示错误
.browser.msie && window.XDomainRequest) { // error displayed
但是得到了同样的结果。我的代码出了什么问题?在此先感谢您的帮助。
您好,
请在这里找到答案如果您使用的是jquery 1.9
http: //stackoverflow.com/questions/14524289/browser-is-undefined-error [ ^ ]
所有最佳:)如果您需要支持请写回来!
Hello ,
Pls you can find the answer here if you are using jquery 1.9
http://stackoverflow.com/questions/14524289/browser-is-undefined-error[^]
All the Best:)pls write back if you need support!
这篇关于Microsoft JScript运行时错误:'jQuery.browser.msie'为null或不是对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文