<ul>
<li>多蘭劍</li>
<li>長(zhǎng)劍</li>
<li>短劍</li>
<li>死刑宣告</li>
<a style="cursor:pointer">更多</a>
<li class="hidd" style="display:none">暴風(fēng)之劍</li>
<li class="hidd" style="display:none">黑色切割者</li>
<li class="hidd" style="display:none">無(wú)盡之刃</li>
<li>飲血?jiǎng)?amp;lt;/li>
</ul>
<li>多蘭劍</li>
<li>長(zhǎng)劍</li>
<li>短劍</li>
<li>死刑宣告</li>
<a style="cursor:pointer">更多</a>
<li class="hidd" style="display:none">暴風(fēng)之劍</li>
<li class="hidd" style="display:none">黑色切割者</li>
<li class="hidd" style="display:none">無(wú)盡之刃</li>
<li>飲血?jiǎng)?amp;lt;/li>
</ul>
2016-06-27
$(document).ready(function() {
$("li:gt(3)").not("li:last").hide();
$("a").click(function(){
if($("a").html()=="更多"){
$("li").show();
$("a").html("簡(jiǎn)化");
}else{
$("li:gt(3)").not("li:last").hide();
$("a").html("更多");
}
});
$("li:gt(3)").not("li:last").hide();
$("a").click(function(){
if($("a").html()=="更多"){
$("li").show();
$("a").html("簡(jiǎn)化");
}else{
$("li:gt(3)").not("li:last").hide();
$("a").html("更多");
}
});
2016-06-27
$("input:eq(0)").click(function(){
$("div").animate({left: "-=50px"},500);
});
$("input:eq(1)").click(function(){
$("div").animate({left: "+=50px"},500);
});
</script>
$("div").animate({left: "-=50px"},500);
});
$("input:eq(1)").click(function(){
$("div").animate({left: "+=50px"},500);
});
</script>
2016-06-27
$("#html").html($content);//獲取元素的html內(nèi)容,代碼格式也一并獲取
$("#text").text($content);//值只獲取元素的文本內(nèi)容,并不包含html格式代碼。
$("#text").text($content);//值只獲取元素的文本內(nèi)容,并不包含html格式代碼。
2016-06-27
太跳了… 沒(méi)有給php服務(wù)端協(xié)議 怎么寫(xiě)的下去 只能get 輸入框的內(nèi)容傳輸?shù)秸故究?hellip;…
2016-06-27
appendTo()括號(hào)里面的內(nèi)容,可以是元素名稱(chēng),也可以是篩選的對(duì)象:
$($html).appendTo($("#bbb"));
$($html).appendTo($("#bbb"));
2016-06-27
<li>男士?jī)?nèi)衣</li>
<li>男士外套</li>
<li>男士夏裝</li>
<li>男士冬裝</li>
<li>男士休閑裝</li>
<li>男士外套</li>
<li>男士夏裝</li>
<li>男士冬裝</li>
<li>男士休閑裝</li>
2016-06-26