'this`的价值

时间:2016-12-08 11:42:54

标签: javascript

我正在从书中学习JavaScript" The Good Parts"在页面33上,作者编写了这段代码:

Function.prototype.method = function (name, func) {
    this.prototype[name] = func;
    return this;
}

this在此函数中代表什么?

0 个答案:

没有答案