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

mouseleave

时间:2016/12/10 13:41:00 点击:

  核心提示:!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN https://www.w3.org/TR/xhtml1/DTD/xhtml1-...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>菜鸟教程(runoob.com)</title>
<script src="https://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
</script>
<script src="file:///D|/zhandian/jquery-2.1.4/jquery.js"></script>
<script>
$(document).ready(function(){
$("#p1").mouseleave(function(){
alert("再见,您的鼠标离开了该段落。");
});
});

</script>
</head>
<body>
<p id="p1">这是一个段落。</p>
</body>
</html>

 

Tags:MO OU US SE 
作者:网络 来源:sky_123456