yutent 2022-03-17 19:22:46 +08:00
parent 0e7e325630
commit 5400d17989
1 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,19 @@ if (!String.prototype.size) {
return tmp[n]
}
})
Object.defineProperty(String.prototype, 'split16', {
value(pipe) {
if (pipe === '') {
var tmp = []
for (let it of this) {
tmp.push(it)
}
return tmp
} else {
return this.split(pipe)
}
}
})
}
export class Enum {