手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

IE11下javascript脚本不执行的怎么办

时间:2024-11-10 13:13:24

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(){ //... });});

© 手抄报圈