合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
##Node 命令基本用法 进入 REPL 环境: ``` $ node ``` 执行脚本字符串: ``` $ node -e 'console.log("Hello World")' ``` 运行脚本文件: ``` $ node index.js $ node path/index.js $ node path/index ``` 查看帮助: ``` $ node --help ``` ##REPL 环境 - REPL全称(Read,Eval,Print,Loop) ![](https://box.kancloud.cn/2016-07-09_57810b5ea127a.png) ##REPL 环境操作 - 进入REPC: + node + node --use_strict (严格模式) - 环境中 + 可使用console命令 + 特殊变量下划线(_)表示上一个命令的返回结果 + .exit 退出