zl程序教程

您现在的位置是:首页 >  前端

当前栏目

jquery实现点击消失的代码

jQuery代码 实现 点击 消失
2023-06-13 09:15:19 时间
jquery实现点击消失的源代码:
复制代码代码如下:

<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%>
<html>
<head>
<scripttype="text/javascript"src="js/jquery-1.7.1.js"></script>
<scripttype="text/javascript">
$(document).ready(function(){
$("p").click(
function()
{
$(this).hide();
}
);
}
);

</script>

</head>

<body>
<p>点击我,我就会消失!</p>
</body>
</html>