HTML DOM getAttributeNode() 方法
定义和用法
getAttributeNode() 方法从当前元素中通过名称获取属性节点。
提示:如果你仅想返回属性值请使用 getAttribute 方法。
浏览器支持





所有主要浏览器都支持 getAttributeNode() 方法
语法
element.getAttributeNode(attributename)
参数
| 参数 | 类型 | 描述 | 
|---|---|---|
| attributename | String | 必须。你想返回的属性名。 | 
返回值
| 类型 | 描述 | 
|---|---|
| Attr object | 指定的属性节点 | 
技术细节
| DOM 版本 | Core Level 1 Element Object | 
|---|

 JavaScript 教程
JavaScript 教程 JavaScript 对象
JavaScript 对象 jQuery 教程
jQuery 教程 JSON 教程
JSON 教程 AngularJS 教程
AngularJS 教程 Angular 2 教程
Angular 2 教程 Vue.js 教程
Vue.js 教程 React 教程
React 教程 jQuery UI 教程
jQuery UI 教程 jQuery EasyUI 教程
jQuery EasyUI 教程 AJAX 教程
AJAX 教程 Highcharts 教程
Highcharts 教程 Google Maps API 教程
Google Maps API 教程 ES6 教程
ES6 教程 TypeScript教程
TypeScript教程 ES6 标准入门
ES6 标准入门 元素对象
 元素对象