js控制 div 鼠标双击事件
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<div onclick="alert(10)" style="width:100px;height:100px;border:1px dotted black;" id="test"></div>
<div ondblclick="clickborder()" style="width:100px;height:100px;border:1px dotted red;" id="test"></div>
<script>
document.getElementById("test").ondblclick = document.getElementById("test").onclick;
document.getElementById("test").onclick = null;
</script>
</body>
<script>
function clickborder() {
alert("双击!!");
}
</script>
</html>