Posted in Javascript onDecember 16, 2013
javascript:
document.getElementById("myId").setAttribute("href","www.xxx.com"); document.getElementById("myId").href = "www.xxx.com";
jquery:
$("#myId").attr("href","www.xxx.com");
javascript和jquery修改a标签的href属性
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@