要通过数据属性获取所有DOM 元素,请使用querySelectorAll 方法,例如document.querySelectorAll([data-id]) 。 querySelectorAll 方法返回 ...
確定! 回上一頁