在此我推荐两种比较常用的两种对于Js的压缩办法:

1.jsmin

http://www.crockford.com/javascript/jsmin.html

C:\jsmin.exe <C:\before.js>C:\after.js

在cmd中输入上述命令,详细documentation参看网址

2.dojo compressor

https://dojotoolkit.org/reference-guide/1.8/util/shrinksafe/index.html#

java -jar shrinksafe.jar infile.js > outfile.js

在cmd中输入上述实例,详细documentation参看网址

相关文章:

  • 2021-06-04
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2021-07-20
  • 2021-09-30
猜你喜欢
  • 2022-12-23
  • 2022-01-17
  • 2021-12-31
  • 2021-12-31
  • 2021-06-05
  • 2021-06-07
相关资源
相似解决方案