本帖最后由 cyi59 于 2015-03-05 16:59:28 编辑

解决方案 »

  1.   

    没区别
    .click(function(){})是.bind("click",function(){}) 的快捷方式
      

  2.   

    源代码
    .click
     function (t,n){return null==n&&(n=t,t=null),arguments.length>0?this.on(e,null,t,n):this.trigger(e)}(这里的e是click)

    .bind
     function (t,e,n){return this.on(t,null,e,n)}
      

  3.   

    通过bind绑定的事件,可以使用unbind来为这个元素解除绑定。
      

  4.   

    你举的例子里面,没什么区别。而且 “$("#logIn").click(function(e)” 的写法更简单。bind 可以同时绑定多个事件:
    $('#foo').bind('mouseenter mouseleave', function() {
        $(this).toggleClass('entered');
    });
    还可以同时绑定多个事件/多个处理程序。