{"action":"created","issue":{"url":"https://api.github.com/repos/banricho/webLog/issues/4","labels_url":"https://api.github.com/repos/banricho/webLog/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/banricho/webLog/issues/4/comments","events_url":"https://api.github.com/repos/banricho/webLog/issues/4/events","html_url":"https://github.com/banricho/webLog/issues/4","id":114470669,"number":4,"title":"《Node.js 开发指南》 附录 A 读书笔记","user":{"login":"banricho","id":7817228,"avatar_url":"https://avatars.githubusercontent.com/u/7817228?v=3","gravatar_id":"","url":"https://api.github.com/users/banricho","html_url":"https://github.com/banricho","followers_url":"https://api.github.com/users/banricho/followers","following_url":"https://api.github.com/users/banricho/following{/other_user}","gists_url":"https://api.github.com/users/banricho/gists{/gist_id}","starred_url":"https://api.github.com/users/banricho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banricho/subscriptions","organizations_url":"https://api.github.com/users/banricho/orgs","repos_url":"https://api.github.com/users/banricho/repos","events_url":"https://api.github.com/users/banricho/events{/privacy}","received_events_url":"https://api.github.com/users/banricho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/banricho/webLog/labels/%E8%AF%BB%E4%B9%A6","name":"读书","color":"4E4E4E"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T13:53:09Z","updated_at":"2015-12-17T02:14:39Z","closed_at":null,"body":"这周末要去参加 D2，大会上很多都是讲 Node.js 的，而我又不懂，于是临死抱佛脚补充下基础。\r\n\r\n恰好这本《Node.js 开发指南》的附录部分比较吸引我，就先看了。其实这和 Node 关系不大，主要讲的是一些 JavaScript 的特性。\r\n\r\n感觉这部分写的不错，浅显易懂，于是写个笔记备忘。"},"comment":{"url":"https://api.github.com/repos/banricho/webLog/issues/comments/165315697","html_url":"https://github.com/banricho/webLog/issues/4#issuecomment-165315697","issue_url":"https://api.github.com/repos/banricho/webLog/issues/4","id":165315697,"user":{"login":"banricho","id":7817228,"avatar_url":"https://avatars.githubusercontent.com/u/7817228?v=3","gravatar_id":"","url":"https://api.github.com/users/banricho","html_url":"https://github.com/banricho","followers_url":"https://api.github.com/users/banricho/followers","following_url":"https://api.github.com/users/banricho/following{/other_user}","gists_url":"https://api.github.com/users/banricho/gists{/gist_id}","starred_url":"https://api.github.com/users/banricho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banricho/subscriptions","organizations_url":"https://api.github.com/users/banricho/orgs","repos_url":"https://api.github.com/users/banricho/repos","events_url":"https://api.github.com/users/banricho/events{/privacy}","received_events_url":"https://api.github.com/users/banricho/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T02:14:39Z","updated_at":"2015-12-17T02:14:39Z","body":"### 作用域\r\n\r\nES5 没有块级作用域，其作用域由函数来决定。\r\n\r\n变量搜索由内部逐渐向外部查找。\r\n\r\n`var` 定义的函数 / 变量会被提升，但提升时不会被初始化。\r\n\r\n作用域嵌套关系在定义时就被确定，而不是在运行时。\r\n\r\n避免隐式定义全局变量。"}}