摘要:
<div class="box" id="box" onmousemove="showPosition(event);"></div> function showPosition(e){ var e = e||window.event; // 适应谷歌和火狐 x = e.clientX+docume 阅读全文
posted @ 2021-12-09 13:32
魏无羡的小古板
阅读(428)
评论(0)
推荐(0)
摘要:
<div id="btn">点击</div>document.getElementById("btn").onmousedown = function(e){ if(e.button ==2){ //右键 } if(e.button ==0){ //左键 } if(e.button ==0){ // 阅读全文
posted @ 2021-12-09 13:21
魏无羡的小古板
阅读(90)
评论(0)
推荐(0)
浙公网安备 33010602011771号