for ie无效 in js_获取SCRIPT1014:来自本地js文件的IE中的字符无效

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值