SignalR 在IE中无法工作 Internet Explorer

运行基于SignalR的超线程上载器的代码,发现SignalR 在IE 9上居然没法工作了,提示如下:

image

提示很明显,需要json2.js的支持。

使用Nuget 搜索json2.js 并安装:

image

在引用之前引用json2.min.js

   <script src="Scripts/json2.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
   <script src="Scripts/jquery.signalR-1.0.0-rc1.js" type="text/javascript"></script>

重新运行项目,问题解决了。

Real Time Commenting using SignalR and XSLT

SignalR, Quartz.Net and ASP.Net: part 2 the webclient

MVC API 实时日志查看功能

Building Web Apps with SignalR, Part 1

欢迎大家扫描下面二维码成为我的客户,为你服务和上云

原文地址:https://www.cnblogs.com/shanyou/p/2950861.html