解决方案 »

  1.   


    <a id="a" href="http://www.baidu.com">baidu</a>
        <br />
        <button id="button">click</button>
        <script type="text/javascript">
            document.getElementById("a").onclick = function() {
                alert("触发A标签click事件");
            };
            document.getElementById("button").onclick = function() {
                document.getElementById("a").onclick();
            };
        </script>通过以上代码可以看出a标签的click事件跟页面跳转没有关系
    要实现跳转必须鼠标去点 以上代码在IE8和火狐中是这样的,其他浏览器不清楚
      

  2.   


    $.("a").each(function(){
    $(this).on("click",function(){
    alert(123);
    });
    });
      

  3.   

    初步估计事件绑定出错$(document).ready(function(){
       $("a").click(){
          alert(this.id);
       }
    }试试
      

  4.   


    $(document).ready(function(){
    $("a").each(function(index,item){
       $(this).bind("click",function(){
       // 你的操作。
    })
       
    })
    })
      

  5.   

    在我的电脑上也是,我也是根据a标签的id  定义click 事件,但是事件无效,
    $("#aid").click(function(){})   //根据id名这样无效
    $(".class1").click(function(){})   //根据其引用的class 名可以不知道是为什么,但是可以找到解决方案