怎样获取当前元素节点的所有属性节点集合

使用 Element.prototype.attributes

document.documentElement.attributes;
// 一个类数组对象: NamedNodeMap

 

posted on 2019-09-19 16:20  aisowe  阅读(1293)  评论(0)    收藏  举报

导航