使用 Element.prototype.attributes

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

 

评论关闭
IT源码网

微信公众号号:IT虾米 (左侧二维码扫一扫)欢迎添加!