Loading

摘要: <div data-id='90'>添加data属性</div> <script> let div =document.querySelector('div') let a =div.dataset['id']//获取得到 90 console.log(a) </script> 阅读全文
posted @ 2024-02-14 20:12 mingBolg 阅读(26) 评论(0) 推荐(0) 编辑