摘要:
<div class="box" id="box" onmousemove="showPosition(event);"></div> function showPosition(e){ var e = e||window.event; // 适应谷歌和火狐 x = e.clientX+docume 阅读全文
摘要:
<div id="btn">点击</div>document.getElementById("btn").onmousedown = function(e){ if(e.button ==2){ //右键 } if(e.button ==0){ //左键 } if(e.button ==0){ // 阅读全文