摘要: var array = [1,2,3,4,5]; try { // 执行到第3次,结束循环 array.forEach((item, index)=> { // debugger if (item == 3) { throw new Error("跳出循环"); } console.log(item 阅读全文
posted @ 2021-06-03 11:28 icon-icon 阅读(98) 评论(0) 推荐(0) 编辑