找不出问题,求帮忙。。
<!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>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li class="hid">5</li>
<li class="hid">6</li>
<li>7</li>
<a href="#" onclick="more()">更多</a>
</ul>
<script type="text/javascript">
$(".hid").css("background-color","red");
$("li.hid").hide();
function more(){
var text=$("a").html();
if(a=="更多"){
$("a").html("简化");
$(".hid").show();
}
}
</script>
</body>
</html>