Javascript

doc & reference

 * https://developer.mozilla.org/en/JavaScript - mozilla javascript ref
 * http://ejohn.org/apps/learn/ - John Resig, learn advanced javascript
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript - javascript re-introduction

closure (闭包)

 * JavaScript 的闭包 (closure), 内层函数可以引用包含它的外层函数的变量，即使外层函数执行已经返回.

first example of closure: 

second example of closure:

another example:


 * http://jibbering.com/faq/notes/closures/ - javascript closure doc
 * http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html - a document about closure
 * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Closures - Mozilla about closure
 * http://www.gracecode.com/posts/2385.html - a ppt about closure

json

 * http://www.json.org/


 * Json 的优点：
 * 基于纯文本
 * Javascript原生支持
 * 轻量级数据格式，占用字符数量极少
 * 可读性较强
 * 容易编写和解析

jsonp

 * Jsonp(JSON with Padding)
 * https://zh.wikipedia.org/wiki/JSONP
 * https://en.wikipedia.org/wiki/JSONP
 * https://www.sitepoint.com/jsonp-examples/

js regex doc

 * https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions - RegEx from Mozilla