js判断鼠标左,中,右键哪个被点击的方法event.button判断鼠标点击window.onmousedown=function(evt){evt=event || window.eventconsole.log(evt.button)==>0(鼠标左键),1(鼠标2023-04-17JavaScript250