ESC之ESC.wsf可以實(shí)現(xiàn)javascript的代碼壓縮附使用方法第4/5頁(yè)
更新時(shí)間:2007年05月07日 00:00:00 作者:
可以對(duì)javascript的大小進(jìn)行壓縮。使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格式并提交給服務(wù)器的實(shí)現(xiàn)方法
下面小編就為大家分享一篇form表單數(shù)據(jù)封裝成json格式并提交給服務(wù)器的實(shí)現(xiàn)方法,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2017-12-12JS實(shí)現(xiàn)屏蔽網(wǎng)頁(yè)右鍵復(fù)制及ctrl+c復(fù)制的方法【2種方法】
這篇文章主要介紹了JS實(shí)現(xiàn)屏蔽網(wǎng)頁(yè)右鍵復(fù)制及ctrl+c復(fù)制的方法,結(jié)合實(shí)例形式分析了2種比較常用的屏蔽復(fù)制功能的技巧,需要的朋友可以參考下2016-09-09js中Function引用類(lèi)型常見(jiàn)有用的方法和屬性詳解
在本篇文章里小編給大家整理的是關(guān)于js中Function引用類(lèi)型常見(jiàn)有用的方法和屬性知識(shí)點(diǎn),有興趣的朋友們可以學(xué)習(xí)下。2019-12-12