茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    jQuery綁定事件-多種實現(xiàn)方式總結
    來源:易賢網(wǎng) 閱讀:942 次 日期:2016-07-02 11:11:05
    溫馨提示:易賢網(wǎng)小編為您整理了“jQuery綁定事件-多種實現(xiàn)方式總結”,方便廣大網(wǎng)友查閱!

    下面小編就為大家?guī)硪黄猨Query綁定事件-多種實現(xiàn)方式總結。小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考

    jQuery綁定事件-多種實現(xiàn)方式總結

    <html>

    <head>

    <meta charset="utf-8" />

    <script src=https://pan.baidu.com/s/1o8GiuOq?qq-pf-to=pcqq.c2c></script>

    </head>

    <body>

    <input type="text"/>

    <input type="button" value="button1"/>

    <script>

    $(function(){

      var text = $(":text");

      var button = $(":button");

      //調試器記錄日志 console.log("message"); 如:火狐瀏覽器,打開FireBug(按F12)

      //觸發(fā)單個事件:兩種方式

      button.bind("mouseover",function(){

        console.log("移入");

      });

      button.bind({

        "mouseout": function(){

          console.log("移出");

        }

      });

      //多個事件:三個方式

      text.bind("dblclick blur",function(){

        console.log("雙擊或者失去焦點");

      });

      text.bind({

        "dblclick blur":function(){

          console.log("雙擊或者失去焦點");

        }

      });

      text.bind({

        "dblclick":function(){

          console.log("雙擊");

        },

        blur:function(){

          console.log("失去焦點");

        }

      });

      //取消事件

      text.unbind("dblclick"); //取消單個事件

      //text.unbind("dblclick blur"); //取消多個事件

      //text.unbind(); //取消全部事件

    });

    </script>

    </body>

    </html>

    以上這篇jQuery綁定事件-多種實現(xiàn)方式總結就是小編分享給大家的全部內容了,希望能給大家一個參考

    更多信息請查看網(wǎng)絡編程
    易賢網(wǎng)手機網(wǎng)站地址:jQuery綁定事件-多種實現(xiàn)方式總結

    2026上岸·考公考編培訓報班

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網(wǎng)