使用node

1、在node交互模式下运行(cmd)
使用node
2、单独创建一个node文件,就是不包含bom和dom的js文件,然后使用node 文件名 来运行文件 也可以加上后缀就是node 文件名.js 这种方式一般是运行一个独立的nodejs文件
使用node