87,839
社区成员




<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<button id="btn">btn</button>
<script type="text/javascript">
var btn = document.getElementById('btn');
btn.onclick = function () {
btn.style.backgroundColor = 'red';
}
btn.onmousedown = function () {
alert(1); // 或者 用 confirm 等阻塞的方法
}
</script>
</body>
</html>