实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<script src="https://libs.baidu.com/jquery/1.10.2/jquery.min.js">
5
</script>
6
<script>
7
$(document).ready(function(){
8
  $("div").mousedown(function(){
9
    $(this).after("<p>Mouse button pressed down.</p>");
10
  });
11
 });
12
</script>
13
</head>
14
<body>
15
16
<div style="color:red;">Press down the mouse button over this div element.</div>
17
18
</body>
19
</html>