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

问题描述

是否有人针对Google新发布的编译器编译了jQuery?

Has anyone compiled jQuery against Google's newly-released Closure compiler?

据报道,代码大小节省了大量资金。我很好奇jQuery是用它编译的好处是什么。

There has been reported huge savings in code size. I'm curious what the benefit is if jQuery was compiled with it.

推荐答案

John Resig报告了一个关于递归函数的错误我试图编译每晚的jQuery 1.4,因此有一些问题需要解决。我不会使用使用Closure Compiler编译的jQuery而不确保它通过jQuery测试平台。

John Resig reported a bug on recursive functions when he attempted to compile a nightly of jQuery 1.4, so there are a few kinks to be worked out. I wouldn't use a jQuery compiled with Closure Compiler without making sure it passes the jQuery testbed.

这篇关于使用Google Closure Compiler编译的jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 03:23
查看更多