yangchaoben
yangchaoben
```JavaScript function request (url) { return new Promise (resolve => { const time = Math.random() * 1000 setTimeout(() => resolve(`${url} + ${Date.now()}`), time) }) } function maxNum (urls, maxNum) {...
```js Array.prototype.spliceMy = function (startIndex, endIndex, ...item) { if (startIndex < 0) { startIndex = this.length + startIndex endIndex = this.length + startIndex + endIndex } else { endIndex =...
我把XGPush.addEventListener('message', this._onMessage);注释掉不报这个错了,还有发布应用的时候capabilites里push notification要打开,不然_onRegister回掉不起作用