加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows-8 – 为什么像KnockoutJS这样的第三方javascripts不会通

发布时间:2020-12-14 01:53:13 所属栏目:Windows 来源:网络整理
导读:当我在jQuery中进行DOM操作时,我知道MSApp.execUnsafeLocalFunction问题,但即使是jQuery link here的修改版本也无法通过Windows存储进行验证. 这里的模式似乎是我所有的Nu??get拉出的脚本都无法验证.有人为什么这么说? Error Found: The bytecode generatio
当我在jQuery中进行DOM操作时,我知道MSApp.execUnsafeLocalFunction问题,但即使是jQuery link here的修改版本也无法通过Windows存储进行验证.

这里的模式似乎是我所有的Nu??get拉出的脚本都无法验证.有人为什么这么说?

Error Found: The bytecode generation test detected the following errors:

File ?C:Program Files...Scriptsrequire.js has JavaScript syntax or other problems.
File ?C:Program Files...Scriptsr.js has JavaScript syntax or other problems.
File ?C:Program Files...Scriptsknockout-2.2.0.js has JavaScript syntax or other problems.
File ?C:Program Files...Scriptsknockout-2.2.0.debug.js has JavaScript syntax or other problems.
File ?C:Program Files...Scriptsknockout.mapping-latest.js has JavaScript syntax or other problems.
File ?C:Program Files...Scriptsknockout.mapping-latest.debug.js has JavaScript syntax or other problems.
File ?C:Program Files...Scriptsjquery-1.8.3.js has JavaScript syntax or other problems.

解决方法

尝试使用UTF8字节顺序标记(BOM)编码保存文件.我有一个类似的问题,这解决了这个问题.

in VS > File Menu > Advanced Save Options > select UTF-8 with
signature Codepage 65001

http://msdn.microsoft.com/en-us/library/windows/apps/hh849088.aspx
不是特定于您的问题,而是字节码缓存.

HTH

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读