<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>挑战题</title></head><body><script type="text/javascript"> function on() { if($("a").html()=="更多") { $(".hid").show(); $("a").html("简化"); } else { $(".hid").hide(); $("a").html("更多"); } }</script> <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li style="display:none" class="hid">5</li> <li style="display:none" class="hid">6</li> <li>7</li> </ul> <a href="javascript:" onclick="on()">更多</a></body></html>
- 3 回答
- 0 关注
- 1669 浏览
添加回答
举报
0/150
提交
取消