element-audio icon indicating copy to clipboard operation
element-audio copied to clipboard

ES6解构错误

Open luocong2016 opened this issue 6 years ago • 2 comments

[...document.getElementsByTagName("audio")] 这种方式有问题

我改成是可以用的 Array.from(document.getElementsByTagName("audio"))

babel: stage-2

luocong2016 avatar May 13 '19 06:05 luocong2016

后面考虑了兼容性还是改成 Array.prototype.slice.call(document.getElementsByTagName("audio"))

luocong2016 avatar May 13 '19 07:05 luocong2016

我觉得解构应该是可以用的,只要经过babel编译后。

wangduanduan avatar May 22 '19 05:05 wangduanduan