摘要:
Jquery设置获取DOM元素属性 1, attr() $("button").click(function(){ $("#runoob").attr("href","www.96net.com.cn"); }); 2, 可以传递匿名函数 $("button").click(function(){ 阅读全文
posted @ 2020-03-26 13:33
学无边涯
阅读(496)
评论(0)
推荐(0)
摘要:
Jquery设置获取DOM元素的内容 html() text() val() 例如 <p>www.96net.com.cn</p> <input type="text" name="aa" value=""> 1,html()用法 包含html元素 获取内容 $("p").html() 设置内容 $ 阅读全文
posted @ 2020-03-26 13:23
学无边涯
阅读(489)
评论(0)
推荐(0)

浙公网安备 33010602011771号