js Tips

1.根据类型名字,新建对象web clone(flags: number) { let name = 'ClassName' + this._type; let obj = new window[name]; obj.assign(this, flags); return obj; } 2.在对象前面加正负号,默认为 nume
相关文章
相关标签/搜索