为了防止相对路径提交不正确 我给ajax提交都设置了 绝对路径 代码大约是
这是我的局域网ip地址
我自己测试时为localhost:8080....
而是用firefox和chrome就没有此问题
后来发现在我机器上输入<span style="white-space: pre;">192.168.1.123:8080就不会有问题...</span>
总结原因为
<span style="color: #ff0000;">ie的安全级别过高</span>
<span style="font-family: arial, sans-serif, helvetica, tahoma; line-height: 18px;">工具--internet选项--安全--自定义级别--其它--通过域访问数据源</span>
设置一下就好了
//服务器地址 var webroot = "http://192.168.1.123:8080/tpccalendar/";//web.xml配置的servletvar service_pattern = "events_service";
这是我的局域网ip地址
我自己测试时为localhost:8080....
而是用firefox和chrome就没有此问题
后来发现在我机器上输入<span style="white-space: pre;">192.168.1.123:8080就不会有问题...</span>
总结原因为
<span style="color: #ff0000;">ie的安全级别过高</span>
<span style="font-family: arial, sans-serif, helvetica, tahoma; line-height: 18px;">工具--internet选项--安全--自定义级别--其它--通过域访问数据源</span>
设置一下就好了