cheungzh
cheungzh
``` function move(arr, step) { let length = arr.length; let hash = arr.reduce((hash, value, key) => { hash[key] = value; return hash; }, {}); let newHash = Object.keys(hash).reduce((newHash, key) =>...
```js function promiseAll(promises = []) { let result = []; function check(resolve) { let length = result.length; if (length === promises.length) { resolve(result); } } return new Promise(resolve => {...
> 请问解决了吗?这个应该是json循环引用导致的问题,但是我找不到解决方法。 这个是uniapp内部对data 和 computed 做JSON.stringify做拷贝导致的循环引用问题,也就是不要在data上初始化值的就可以,直接this.lottieObj = lottie.loadAnimation()