Skip to content

Commit

Permalink
Node 基础
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangJunrong committed Dec 10, 2018
1 parent 6b2f2ee commit 1f7038b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions other-library/Node/NodeBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -2090,6 +2090,50 @@ EventEmitter.on('data', (ext) => {
*---*

1. 章节 3.1 - 章节 3.8 是一个小模块
2. Console 模块与 Error 模块,需要认知两种 Console 打印方式:

```
console.log("Success:新增执行成功!");
// Console:Success:新增执行成功!
console.error(new Error('新增执行失败:'));
/**
* Console:
* Error: 新增执行失败:
at Object.<anonymous> (E:\MyWeb\jsliang-study\unfineshed-code\Test\index.js:3:15)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
*/
try {
const m = 1;
const n = m + z;
} catch(error) {
console.log(error);
}
/**
* Console:
* ReferenceError: z is not defined
at Object.<anonymous> (E:\MyWeb\jsliang-study\unfineshed-code\Test\index.js:7:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
*/
```

3. 加密模块。
4.

*---*

Expand Down

0 comments on commit 1f7038b

Please sign in to comment.