<!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/javascri pt"></script> <script> $("a").click(function(){ if($("a").html()=='更多'){ $("a").html("简化"); $("li:hidden").css("display","block"); }else{ $("a").html("更多"); $("li:hidden").css("display","none") } }) </script> </head> <body> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li style="display:none">5</li> <li style="display:none">6</li> <li><a href="#">更多</a></li> </ul> </body> </html>
qq_蒋丹丹是枣糕少年_0
相关分类