获取a标签中的href属性的值及修改href的属性值

//获取a标签中href的属性值 var href=$("a").attr("href"); //修改a标签中href的属性值 $("a").attr("href","www.baidu.com");
相关文章
相关标签/搜索