当前位置: 代码迷 >> JavaScript >> js 暗藏
  详细解决方案

js 暗藏

热度:240   发布时间:2012-10-20 14:12:47.0
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>

  相关解决方案