请问加粗部分为什么不对,不只是想根据属性选出display为none的元素们
<!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>
<ul>
<li>001</li>
<li>002</li>
<li>003</li>
<li>004</li>
<li>005</li>
<li>006</li>
<li>007</li>
</ul>
<a href="javascript:;">更多</a>
<script>
$(function(){
$("li:eq(0)").css("display","none");
$("li:eq(1)").css("display","none");
$("a").click(function(){
if($("a").text()=="更多"){
$("a").text("简化");
$("li[style='display:none']").css( "display","list-item");
}else{
$("a").text("更多");
$("li:eq(0)").css("display","none");
$("li:eq(1)").css("display","none");
}
});
});
</script>
</body>
</html>