let arr = Array.prototype.slice.call( htmlCollection )
let arr = Array.prototype.concat.apply([], htmlCollection )
let arr = Array.from(htmlCollection)
将类数组htmlCollection转为数组
于 2023-01-12 16:10:19 首次发布
let arr = Array.prototype.slice.call( htmlCollection )
let arr = Array.prototype.concat.apply([], htmlCollection )
let arr = Array.from(htmlCollection)