多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# getAttribute 获取元素属性 ~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>DOM-obj</title> </head> <body> <a href="http://blogcurder.sinaapp.com" id="aid" title="a标签的title属性值"></a> <script> aNode = document.getElementById('aid'); console.log(aNode.getAttribute('title')); // a标签的title属性值 </script> </body> </html> ~~~