是否可以将 Closure Compiler ADVANCED_OPTIMIZATIONS 与 jQuery 一起使用? [英] Is it possible to use Closure Compiler ADVANCED_OPTIMIZATIONS with jQuery?

查看:22
本文介绍了是否可以将 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 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆