您的位置:首页 > Web前端 > JavaScript

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: