闭包、上下文、this
闭包/上下文/this由cnblogs听风是风博客整理闭包闭包是指有权访问另一个函数作用域中的变量的函数,如下var myObject = (function () { var value = 0; return { increment: function (inc) { value += typeof inc === 'number' ? inc : 1; }, getValue: function () { return value;






