标签:style alert use event 单击 val class value div
oDevId.onmousedown = function(e){ var e = e || window.event;
alert(‘e:‘+e.button);
if(e.button == "2"){
alert(‘‘你点击的是右键) this.value = ‘‘; }else if(e.button == ‘0‘){
alert(‘你点击的是左键‘)
} }
标签:style alert use event 单击 val class value div
原文地址:http://www.cnblogs.com/zwhbk/p/6552917.html