<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>挑战题</title>
<script src="http://libs.baidu.com/jquery/1.9.0/jquery.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li class="hidden">1</li>
<li>2</li>
<li class="hidden">3</li>
<li>4</li>
<li>5</li>
<li class="hidden">6</li>
<li class="hidden">7</li>
<li>8</li>
<li>9</li>
</ul>
<a href='#' onclick="lianjie()">更多</a>
<script type="text/javascript">
$(".hidden").hide();
function lianjie(){
if("更多"==$("a").text()){
$("li:hidden").show();
$("a").html("简化");
}else{
$("li:hidden").hide();
$("a").html("更多");
}
}
</script>
</body>
</html>