IE11下javascript脚本不执行的怎么办
1、一种解决方案是在你网站的web.config中配置IE的兼容模式:<system.webServer> <httpProtocol>稆糨孝汶; <customHeaders> <clear/> <add name="X-UA-Compatible" value="IE=edge"/> </customHeaders> </httpProtocol><system.webServer>
2、还有一种方式是在页面中添加以下meta:<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
3、然后检查一下Jquery代码是否正确,确保事件绑定操作在页面加载的时候正确执行,jquery绑定点击事件代码如下:$(function(){ $("#id1").click(function(){ //... });});
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:62
阅读量:47
阅读量:75
阅读量:22
阅读量:58