function a () { shapeList.forEach(el => { if (el && el.destroy) { el.updateLayer(20) el.destroy() } }) } setTimeout( () => { a() }, 2000) 这样时无效的,顶多是动画被删除了
function a () {
shapeList.forEach(el => {
if (el && el.destroy) {
el.updateLayer(20)
el.destroy()
}
})
}
setTimeout( () => { a() }, 2000)
这样时无效的,顶多是动画被删除了