如何使Jquery与Google Closure编译器一起使用 [英] How to make Jquery work with google closure compiler

查看:85
本文介绍了如何使Jquery与Google Closure编译器一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用JQuery浏览了有关GCC的所有帖子,但是找不到解决方案. JQuery仍不兼容GCC吗?如果不能,请参考相应的链接或提供示例?

I have been going through all the posts related to GCC with JQuery but unable to find the solution. Is JQuery still not compatible to work with GCC? If not can you please refer to the appropriate link or provide an example?

推荐答案

jQuery的主要发行版与Closure编译器ADVANCED_OPTIMIZATIONS不兼容.要使用jQuery的主要内部版本,您必须在 Closure-compiler contrib文件夹.

The main distribution of jQuery is not compatible with Closure-compiler ADVANCED_OPTIMIZATIONS. To use the main build of jQuery you must reference the appropriate jQuery extern file in the Closure-compiler contrib folder.

我有一个实验性的jQuery 1.9.1构建,它与ADAVANCED_OPTIMIZATIONS兼容.它是在我的GitHub帐户上可用的.

I have an experimental jQuery 1.9.1 build which IS compatible with ADAVANCED_OPTIMIZATIONS. It is available on my GitHub account.

正在开发兼容的jQuery 2.0.x分支版本,但尚未完成.

A version of the jQuery 2.0.x branch that is compatible is under development, but not yet complete.

这篇关于如何使Jquery与Google Closure编译器一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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