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

  • SecureCRT怎么设置默认协议是Telnet?
  • Win7系统注册表被锁定怎么解决
  • 如何使用火狐浏览器调试网页
  • 如何导出vsphere内容库的文件
  • oracle数据库备份命令
  • 热门搜索
    怎么看微信是哪一年注册的 小说开头怎么写 early怎么读 bak文件怎么打开 花菜怎么炒好吃 word怎么转pdf 猷字怎么读 纸灯笼怎么做 抽动症怎么治疗 我的世界漏斗怎么做