摘要: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/new 阅读全文
posted @ 2015-08-25 14:48 darr 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 指针的坑:var removeFilter = function(method, filter){ _initHook(method); var filters = method['_hooks_'].filters; ... 阅读全文
posted @ 2015-08-25 14:12 darr 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://www.zhihu.com/question/20289071func1.call(this, arg1, arg2); 或者 func1.apply(this, [arg1, arg2]); 来调用。其中 this 是你想指定的上下文,他可以任何一个 JavaScript 对象(Ja... 阅读全文
posted @ 2015-08-25 12:12 darr 阅读(158) 评论(0) 推荐(0) 编辑
摘要: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function/caller非标准该特性是非标准的,请尽量不要在生产环境中使用它!概述返回调用指定函数的函数.该属性不是ECMA-262... 阅读全文
posted @ 2015-08-25 11:14 darr 阅读(265) 评论(0) 推荐(0) 编辑