HTML DOM getAttribute() 方法元素对象实例 获取链接的target 属性值: document.getElementsByTagName('a')[0].getAttribute('target'); 输出结果: _blank 尝试一下» ...
確定! 回上一頁