node 初始化(helloworld)

新建 helloworld.js 文件,内容如下:

var foo = 'hello world!';
console.log(foo);

// 在 node 中,采用 EcmaScript 进行编码
// 没有 BOM、DOM,和浏览器中的 JavaScript 不一样

// 下面会报错
console.log(window);
console.log(document);

命令:cd /d E:\......
查询对应目录下的文件:dir
node——1-node 的初始化 及 读取文件
打开文件下某文件:node 文件名 (注意:文件名不要用 node.js 来命名)
node——1-node 的初始化 及 读取文件

读取文件

待更新ing

相关文章:

  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2018-04-02
  • 2021-12-03
  • 2022-01-25
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案