是否可以将 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版本.

相关文章