Is it possible to use Closure Compiler ADVANCED_OPTIMIZATIONS with jQuery?(是否可以将 Closure Compiler ADVANCED_OPTIMIZATIONS 与 jQuery 一起使用?)
问题描述
我不断收到给定对象的函数(重命名)不存在的错误.是否有版本或设置或其他东西可以使它工作?
I keep getting errors that the function (renamed) does not exist for the given object. Is there a release or setting or something to make it work?
推荐答案
你必须 将 jQuery 声明为编译器的外部...但是我不确定是否有人做过,有一个 1.3.2 的 extern 文件,但我没有没有看到任何 1.4+ 版本.
You have to declare jQuery as an extern to the compiler...however I'm not sure if anyone's made one, there was an extern file for 1.3.2, but I haven't seen any 1.4+ versions.
这个问题线程这里有社区建1.4版本.
这篇关于是否可以将 Closure Compiler ADVANCED_OPTIMIZATIONS 与 jQuery 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以将 Closure Compiler ADVANCED_OPTIMIZATIONS 与 jQuery 一起使用?


基础教程推荐
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01