krokky

Results 4 comments of krokky

``` const multiRequest = async function (urls, maxNum) { const result = []; const refObj = { count: 0, index: 0 }; await new Promise((resolve) => { // 同步启动maxNum个任务 while...

> ```js > Array.prototype._splice = function (start, deleteCount, ...addList) { > if (start < 0) { > if (Math.abs(start) > this.length) { > start = 0 > } else {...

```js Array.prototype._splice = function(start, delCount, ...addList) { // 当起始位置超出了数组的长度,则从数组末尾开始添加内容 if(start > this.length) { start = this.length; delCount = 0; } if(start < 0) { // 超出数组长度的话设置为0 if(Math.abs(start) > this.length) {...

似乎的代理的问题,我尝试设置了 ![image](https://github.com/oott123/alfred-clipboard-ocr/assets/33348656/83276444-179c-406a-ad93-2eec0b8127cf) 提示ERROR: OCR Clipboard[Run Script] request failed, clear credentials cache and try again SSL_connect returned=1 errno=0 state=before connect initialization: tlsv1 alert protocol version undefined method `stack' for #