使用node.js 安装node.js http://nodejs.cn/download/ 直接下载对应版本即可 检查是否安装 命令行(cmd)输入 node -v, 打印出版本号就证明安装好了 执行js脚本 命令行(cmd)输入 node test.js