JS 新手.. 谁能告诉我在以下函数中使用 this 是否合适:
var Vector = (function()...
this.prototype.add = function(someVector2){
    var tmpVect = this;
    tmpVector.x += someVector2.x;
    tmpVector.y += someVector2.y;
    return tmpVect;
};
从某种意义上说,'var tmpVect = this' 将产生一个局部向量变量,该变量具有调用该函数的向量的 x 和 y 属性?
干杯