zoukankan      html  css  js  c++  java
  • 鼠标右键点击事件

    $(function(){ 
    $('a').mousedown(function(e){ 
    alert(e.which) // 1 = 鼠标左键 left; 2 = 鼠标中键; 3 = 鼠标右键 
    return false;//阻止链接跳转 
    }) 
    }) 

    如 

    $('#downwps2010').mousedown(function(e){ 
              if(3 == e.which){ 
                   alert('这 是右键单击事件'); 
               
              }else if(1 == e.which){ 
                       alert('这 是左键单击事件'); 
            
                  } 
            })

  • 相关阅读:
    JDBC
    Listener监听器
    Filter过滤器
    Jstl标签库
    el表达式
    Ajax技术
    数据交换格式之
    MVC模式
    函数
    二维数组练习
  • 原文地址:https://www.cnblogs.com/joesbell/p/6566477.html
Copyright © 2011-2022 走看看