forEach 删除某个元素后,索引更改后,不会在重新执行了

参照:https://www.cnblogs.com/echolun/p/11544045.html

detailList.value = detailList.value.filter((item) => {
              return item.Buy!== "" && item.Sell !== "";
            });

index--也不行,使用filter很好~~

 

https://dozi5f708lowl.cloudfront.net/#/login

posted @ 2021-12-31 15:28  小兔子09  阅读(47)  评论(0编辑  收藏  举报