“new self()” equivalent in Javas
2018-06-05 本文已影响0人
马丁的早辰
https://stackoverflow.com/questions/44627709/new-self-equivalent-in-javascript
static use(db) {
return new this(db);
}
https://stackoverflow.com/questions/44627709/new-self-equivalent-in-javascript
static use(db) {
return new this(db);
}