信号器停止在ie10中工作 [英] signalr stops working in ie10
问题描述
我正在尝试学习signalR,并且我进行了一些测试.它可以在IE 9和chrome中运行,但是当我尝试在ie10上运行它时,我会得到
I am trying to learn signalR and i have a little test working. It works in IE 9 and chrome but when i try to run it on ie10, i get t
如果您需要支持不带
Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without
在搜索此错误时,它指向的浏览器即为ie之前的IE.8.希望有人可以帮助我指出正确的方向.我已经尝试在信号器之前添加json2.js文件,但错误仍然出现.
in searching on this error it points to ie browsers before ie 8. hoping someone can help point me in the right direction. I have tried adding a json2.js file before the signalr and the error is still coming up.
谢谢 香农
这是所要求的完整错误.
Here is the complete error as requested.
SCRIPT5022:SignalR:未找到JSON解析器.如果您需要支持不支持本机JSON解析的客户端,请确保在SignalR.js文件之前引用了json2.js. IE <8.
SCRIPT5022: SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.
您的建议似乎已经解决了我的问题.谢谢
what you suggested seems to have fixed my problem. Thank you
推荐答案
您应尝试添加
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
到您的HTML页面以强制IE符合标准.另外,您可以发布完整错误吗?
to your HTML page to force IE to be standards compliant. Also, can you post the full error.
这篇关于信号器停止在ie10中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!