<!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 title="hide-list">1</li>
<li title="hide-list">2</li>
<li title="hide-list">3</li>
<li title="hide-list">4</li>
<li title="show-list">5</li>
<li title="show-list">6</li>
<li title="show-list">7</li>
<li title="show-list">8</li>
<a title="show-list" href="#" onclick="show()">更多</a>
</ul>
<script title="text/scipt">
$("li[title='hide-list']").hide();
function show(){
if($("a").text()=="更多"){
$("li[title='hide-list']").show();
$("a").html("简化");
}
else(){
$("li[title='hide-list']").show();
$("a").html("更多");
}
}
</script>
</body>
</html>