最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

ESC之ESC.wsf可以實(shí)現(xiàn)javascript的代碼壓縮附使用方法第2/5頁

 更新時(shí)間:2007年05月07日 00:00:00   作者:  
可以對javascript的大小進(jìn)行壓縮。使javascript的加載速度變快。

Crunching, level by level   

Level 0 :: No compression 
No compression done. Basically a content transfer/append from input(s) to output. This level is mainly used for tracking down problems occuring to scripts after been shoved through the variable substitution engine.      

Level 1 :: Comment removal 
ESC removes empty lines (\r?\n)+, single and multi-line and single-line comments (//..., /* ... */) and trailing whitespace. [ \t]+\r?\n  

 
Level 2 :: Whitespace removal 
Any occurance of space and tabs (\s\t\r) are removed from the infile(s). This is the default compression-level if none is supplied.  

 
Level 3 :: Newline removal 
Newlines (\r?\n) are removed. ESC do not like sloppy written code and will at this level punish you for it by producing a very tight, human unreadable, uninpretable chunk o' chars :) So remember, *ALWAYS* terminate your statements with semi-colons (';'). If you come from a C/C++ bg you have probably been taught this the hard way by an evercroaking compiler. If not for getting your script thru ESC, so start doing it anyway for good ol' programming style.  

 
Level 4 :: Variable substitution 
(variable substitution mode, identical to options '-l 3 -$') Additionally to level 3, ESC will run your script(s) through the variable substitution engine. This will certainly break your scripts at the first try, but with a little fiddling around and once you understand how the substitution scheme works, this thing rule since it will save you another extra 5-20% bytewise depending on your coding style. Variable-names less than 3 chars are not affected. Before you try running ESC with variable substitution enabled, I advice you to carefully read the other sections in this manual about the pros and cons, thinking session-dependencies and the known caveats of variable crunching with ESC. Your specific situation in terms of namespaces, shared variables or the design/architecture of your scripts may make it difficult, even impossible to combine with this technique whereas you'll have to stick with level 3.  

相關(guān)文章

最新評論

乐陵市| 昭苏县| 磐石市| 徐州市| 阿克苏市| 察隅县| 上杭县| 揭东县| 神农架林区| 遵化市| 濉溪县| 赣州市| 鄂托克前旗| 永和县| 大冶市| 衡阳县| 芜湖县| 鹿泉市| 呼和浩特市| 伊金霍洛旗| 弋阳县| 香格里拉县| 收藏| 浙江省| 黄梅县| 隆回县| 旌德县| 安图县| 深泽县| 章丘市| 广南县| 宣武区| 吉安市| 泸州市| 海原县| 海宁市| 奎屯市| 东至县| 兴安县| 宜春市| 潮安县|