zl程序教程

您现在的位置是:首页 >  其它

当前栏目

链式调用

调用 链式
2023-09-11 14:17:02 时间

var Run = function (arg) {
  return new Run.prototype.init(arg)
}
Run.prototype = {
  init: function () {
    this.name = 'xw'
    return this
  },
  save: function () {
    return this
  }
}
Run.prototype.init.prototype = Run.prototype