<!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>
<script>
$(document).ready(function(){
$(".hide").hide();
$("a").click(function(){
if ($(this).html() == "更多"){
$(this).html("简化");
$(".hide").show();
}else{
$(this).html("更多");
$(".hide").hide();
};
})
});
</script>
</head>
<body>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li class="hide">6</li>
<li class="hide">7</li>
<li class="hide">8</li>
<li class="hide">9</li>
<li class="hide">10</li>
</ul>
<a href="javascript:;">更多</a>
</body>
</html>