1、下载nodejs node-v8.11.2-x64.msi 安装2、安装uglify-js npm install uglify-js -g 3、uglifyjs --rename test.js -o tmp\test-min.js