简体   繁体   中英

google closure compiler error on external jquery

I'm getting a weird error using google closure compiler. I'm using externs to indicate a reference to jquery but it's not working. I know the picture is not too good but if you open it on a new tab, you'll see what I'm referring to.

It bugs on the .html() function but not the .text() function; in fact, the output code doesn't rename the .text() function, it only renames the .html() function and it bugs.

How do you link jquery to closure compiler?

Thanks.

谷歌编译器

Looks like your options are messed up. It should start with a single block:

// ==ClosureCompiler==
// ...
// ...
// ==/ClosureCompiler==

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM