JS中得到自定义属性值

  元素.dataset.属性名

pane[e.target.dataset.id].style.display = 'block'
posted @ 2023-05-12 18:00  Agiser0  阅读(32)  评论(0)    收藏  举报