博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
for ie无效 in js_获取SCRIPT1014:来自本地js文件的IE中的字符无效
阅读量:5732 次
发布时间:2019-06-18

本文共 1039 字,大约阅读时间需要 3 分钟。

I'm developing a site which is stored locally, and works great in all browsers I've tested except for any versions of IE.

It gives me "SCRIPT1014: Invalid character" for each js-file which I've included in script-tags like this for instance:

This generates the following error:

SCRIPT1014: Invalid character

jquery-1.9.1.min.js, line 1 character 1

If I then click the error to view the file in ie developer tools it looks like this:

?? I?%&/m?{J?J??t??`$ؐ@??????iG#)?*??eVe]f@?흼??{???{???;?N'????\fdl??J?ɞ!????~|?"????

etc

I'd except this to be a common problem (Or don't people ever view locally stored webpages in ie?) but I didn't find much when searching, and what I found didn't help.

How to get around this this?

解决方案

There is a similar problem here: SCRIPT1014: Invalid character

I would check the browser security settings for local scripts.

You can try adding this to your page and see if it works:

or you can set the 'local intranet' zone to low and disable protected mode if on.

Edit: Answer in comments - cleared browser cache.

转载地址:http://jtowx.baihongyu.com/

你可能感兴趣的文章
IntelliJ IDEA 连接数据库详细过程
查看>>
thymeleaf 学习笔记-基础篇
查看>>
分享话题列表
查看>>
PHP-X开发扩展
查看>>
android学习笔记——onSaveInstanceState的使用
查看>>
Windows Server 2003下cwRsyncServer服务端与cwRsync客户端数据
查看>>
iOS 打包上传没有用到日历,但是提示需要在info.plist文件中加入NSCalendarsUsageDescription...
查看>>
工作中如何做好技术积累
查看>>
怎么用sysLinux做U盘双PE+DOS??
查看>>
Spring Transactional
查看>>
shell脚本实例
查看>>
我的友情链接
查看>>
Windows Phone 7 隔离存储空间资源管理器
查看>>
Oracle树形结构的sql语句
查看>>
Microsoft Excel 2000/2003修复工具
查看>>
apache安装报错undefined reference ssl
查看>>
关于爱情只有一句忠告
查看>>
CentOS LVM 新加硬盘,扩容逻辑卷步骤
查看>>
CentOS 7下安装部署Oracle11g图文教程
查看>>
#51CTO学院四周年# 相约烤鸭”
查看>>