獲取a標籤中的href屬性的值及修改href的屬性值

//獲取a標籤中href的屬性值 var href=$("a").attr("href"); //修改a標籤中href的屬性值 $("a").attr("href","www.baidu.com");
相關文章
相關標籤/搜索