ESC之ESC.wsf可以實現(xiàn)javascript的代碼壓縮附使用方法第4/5頁
更新時間:2007年05月07日 00:00:00 作者:
可以對javascript的大小進行壓縮。使javascript的加載速度變快。
Examples of usage
X:\cscript ESC.wsf -ow crunched.js original1.js original2.js original3.js Crunch 'original1.js','original2.js' and 'original3.js' at level 2 (default) and save the output as 'crunched.js'. Any previous file named 'crunched.js' will be overwritten.
X:\cscript ESC.wsf -l 1 -oa crunched.js C:\script-directory Grab all scriptfiles (.js) in directory 'C:\script-directory', crunch them at level 1 (comment and empty line removal only) and append the result to 'crunched.js'. If 'crunched.js' doesn't exist, it will be created.
X:\cscript ESC.wsf -l 0 -$ -ow STDOUT original1.js original2.js Subject 'original1.js' and 'original2.js' for variable substitution, but perform no comment or whitespace removal. Redirect output to STDOUT instead of writing to file.
X:\cscript ESC.wsf -l 4 -ow crunched.js original.js Crunch 'original.js' using variable substitution and remove any occurance of whitespace (where permitted...) and save it as 'crunched.js' (equals -l 3 -$)
X:\cscript ESC.wsf -l 4 -ow crunched.js original.js > verbose.txt Crunch 'original.js' at level 4 and save the verbose output to verbose.txt
相關(guān)文章
form表單數(shù)據(jù)封裝成json格式并提交給服務器的實現(xiàn)方法
下面小編就為大家分享一篇form表單數(shù)據(jù)封裝成json格式并提交給服務器的實現(xiàn)方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2017-12-12JS實現(xiàn)屏蔽網(wǎng)頁右鍵復制及ctrl+c復制的方法【2種方法】
這篇文章主要介紹了JS實現(xiàn)屏蔽網(wǎng)頁右鍵復制及ctrl+c復制的方法,結(jié)合實例形式分析了2種比較常用的屏蔽復制功能的技巧,需要的朋友可以參考下2016-09-09