Holen Sie sich HREF -Attribut JavaScript
document.getElementById("link")[0].getAttribute("href");
Evil Eel
document.getElementById("link")[0].getAttribute("href");
document.getElementById("aaa").href; // http://example.com/sec/IF00.html
//while the one below gets the value of the href attribute:
document.getElementById("aaa").getAttribute("href"); // sec/IF00.html