compressoer the javascript and Css code
2010-08-03 15:23
176 查看
http://javascriptcompressor.com/
Javascript dose not require the ";" if there is a new line between the commands, but if the commands are on the same line
example: alert(1);alert(2);
then the ";" is required. This is why your code is working before
you compress the code, adding the ";" where the validators are telling
you to should fix this problem.
Note that the Packer make all the commands into one long line of code
Javascript dose not require the ";" if there is a new line between the commands, but if the commands are on the same line
example: alert(1);alert(2);
then the ";" is required. This is why your code is working before
you compress the code, adding the ";" where the validators are telling
you to should fix this problem.
Note that the Packer make all the commands into one long line of code
相关文章推荐
- Cross Browser CSS Opacity and the JavaScript Fade / Fading Effect(跨浏览器的CSS透明和JavaScript淡入淡出效果)
- CSS and JavaScript tools to take your website to the next level(备用)
- [转]The Big List of JavaScript, CSS, and HTML Development Tools, Libraries, Projects, and Books
- javascript css 合并压缩SquishIt – The Friendly ASP.NET JavaScript and CSS Squisher
- codeforces #312 B B. Amr and The Large Array(统计)
- Educational Codeforces Round 23 B. Makes And The Product
- [zz]Select, Option, Disabled And The JavaScript Solution
- Analysing the ASM code of a simple sample of C programming language at Linux Platform by GCC and GDB
- Codeforces Round #430 (Div. 2) Ilya And The Tree 树上因子 思维 + dfs
- web工程师入门秘籍(CSS and javascript)
- Codeforces Round #384 B. Chloe and the sequence
- Codeforces Round #215 (Div. 1) C. Sereja and the Arrangement of Numbers(欧拉图)
- How to collect TrustZone debug logs and check the meaning of error code in the logs
- The condition flags and Condition code suffixes (arm)
- Codeforces Round #177 (Div. 1) C. Polo the Penguin and XOR operation(贪心)
- Codeforce 65D - Harry Potter and the Sorting Hat(DP+hash+set)
- Running the Winsock Client and Server Code Sample
- Codeforces Round #250 (Div. 1) D. The Child and Sequence
- codeforces#289_B Polo the Penguin and Matrix
- The usage of the Javascript method call and apply(what is the new and object.create difference.)(What does call(null) mean?)