<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
<title>挑战题</title>
</head>
<body>
<div>
<ul>
<li>一</li>
<li>二</li>
<li>三</li>
<li>四</li>
<li>五</li>
<li>六</li>
</ul>
<a href="javascript:;">更多</a>
</div>
<script>
$(function(){
$("li:eq(5)").css("display","none");
$("a").click(function(){
if($("a").text === "更多"){
$("a").text("简化");
$("li:eq(5)").css("display","list-item");
}else{
$("a").text("更多");
$("li:eq(5)").css("display","none");
}
});
})
</script>
</body>
</html>