Here is our DOM
body
|
|-h1
| |
| |-"Traversing the ..."
|
|-h2
| |
Here is our DOM
body
|
|-h1
| |
| |-"Traversing the ..."
|
|-h2
| |
当模块的文件名是index.js,加载模块时可以使用模块所在目录的路径代替模块文件路径,以下两条语句等价。
var cat = require('/home/user/lib/cat');
var cat = require('/home/user/lib/cat/index');
machine github.com | |
login technoweenie | |
password SECRET | |
machine api.github.com | |
login technoweenie | |
password SECRET |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |