💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 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> ~~~