正文 189字数 370,233阅读

在需要右键的地方加上
onmousedown="righthit()";
Run code
Cut to clipboard


    funciton righthit(){ if (event.button==2) { //DoSomeThing } }
    Run code
    Cut to clipboard