复制楼上的改了改,,,通过验证了,,请同学指正
$(document).ready(function(){
$("a").click(function(){
if($(this).html() == '更多'){
$("li:hidden").show();
$(this).html("简化")
}else{ $("li:visible").show();
$(this).html("更多")
}
})})
$(document).ready(function(){
$("a").click(function(){
if($(this).html() == '更多'){
$("li:hidden").show();
$(this).html("简化")
}else{ $("li:visible").show();
$(this).html("更多")
}
})})
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li style="display:none">6</li>
<li style="display:none">7</li>
<li style="display:none">8</li>
<a id = "aa" href="#">更多</a></ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li style="display:none">6</li>
<li style="display:none">7</li>
<li style="display:none">8</li>
<a id = "aa" href="#">更多</a></ul>
说英语口音的,我也是醉了,你是来学编程的,还是来学英语的,谁规定做编程的就得一口标准的美式/英式英语,这两者有联系吗?!林子大了,啥鸟都有!
2016-01-12
http://download.csdn.net/download/shangxuejin/4049008,这个里书跟源码下载,其中一个案例就是在线聊天室,就是这位写的书!
2016-01-12
.menu({position:{at:'right bottom'}}) 还可以设置菜单出现的位置哟 是不是很好啊!!
2016-01-12
怎么不能全选呢,如$(".red,.green,.blue").html("hi,我们的样子很美哦!"); 则会以“检查index.html中是否存在.red和.green”报错
2016-01-12
@玉林峰 需要向url传数据的用post,无需向URL传数据直接从页面获取信息的用get
2016-01-12
参数content表示需要插入的内容,参数selector表示被选的元素,即把content内容插入selector元素内,默认是在尾部。
2016-01-12