读书人

JQuery课程-隐藏*显示

发布时间: 2012-12-27 10:17:10 作者: rapoo

JQuery教程---隐藏*显示

<html><head><script type="text/javascript" src="/jquery/jquery.js"></script><script type="text/javascript">$(document).ready(function(){  $("#b1").click(function(){  $("p").hide(1000);  });$("#b2").click(function(){$("p").show(1000);});});</script></head><body><button id="b1" type="button">隐藏</button><button id="b2" type="button">显示</button><p>This is a paragraph with little content.</p><p>This is another small paragraph.</p></body></html>


读书人网 >软件开发

热点推荐