Javascript property defined on prototype

后端 未结 0 1279
死守一世寂寞
死守一世寂寞 2020-12-08 12:18

I have a very simple JS code as below;

var Worker = function (name) {
    this.name = name;
}
Worker.prototype.jobs = 0;
Worker.prototype.Work = function () {         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题