日期:2014-05-16  浏览次数:20341 次

js 隐藏

<html>
<head>
<script src="http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js" type="text/javascript" language="javascript"></script>

<script type="text/javascript">
$(document).ready(function(){
? $("p").click(function(){
? $(this).hide();
? });
});
</script>
</head>

<body>
<p>If you click on me, I will disappear.</p>
</body>

</html>