$("body").append($("span[title='hi']").clone());
2015-09-06
1. 获取div中全部元素 $("div *")
2.家族所有 $("div span") 儿子辈,孙子辈
3.父亲和儿子 $("parent>child")
4.紧挨着的第一个邻居 $("p+span")
5.挨着的所有邻居 $("p~span"),p下的所有span
2.家族所有 $("div span") 儿子辈,孙子辈
3.父亲和儿子 $("parent>child")
4.紧挨着的第一个邻居 $("p+span")
5.挨着的所有邻居 $("p~span"),p下的所有span
2015-09-06
var $url = $("#a1").attr("href");
$url="www.imooc.com"
$("#tip").html($url);
$url="www.imooc.com"
$("#tip").html($url);
2015-09-06
.load("http://www.imooc.com/data/fruit_part.html li",function() {
$this.attr("disabled", "true");
});
$this.attr("disabled", "true");
});
2015-09-06
:submit 选择器选取类型为 submit 的 <button> 和 <input> 元素。
如果 <button> 元素没有定义类型,大多数浏览器会把该元素当作类型为 submit 的按钮。
如果 <button> 元素没有定义类型,大多数浏览器会把该元素当作类型为 submit 的按钮。
2015-09-06
$("li:first-child").css("background-color", "green");
2015-09-05
$("li[title*='果']").css("background-color", "green");
2015-09-05
为什么我把代码copy下来后再用浏览器打开,点击检测就没有作用了?同样的代码,同样的样式,但感觉就是ajax突然无效果了,这是为什么?谁能帮忙解释下吗?
2015-09-05