ExtJS學習筆記

          Posted on 2008-11-24 23:09 Robert Su 閱讀(116) 評論(0)  編輯  收藏
          <script>
          function a()
          {
          alert('some thing');
          }

          Ext.onReady(function(){
          Ext.get("btnAlert").addListener("click",a);
          });
          </script>
          <input id="btnAlert" type="button" value="alert框" />

          addLinster方法的另外一個簡寫形式是on
          Ext.get("btnAlert").on("click",a);
          ExtJS支持事件隊列,可以往對象的某一個事件中添加多個事件響應函數——

          Ext.onReady(function(){	
          Ext.get("btnAlert").on("click",a);
          Ext.get("btnAlert").on("click",a);
          })







          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          posts - 103, comments - 104, trackbacks - 0, articles - 5

          Copyright © Robert Su

          主站蜘蛛池模板: 肥城市| 咸宁市| 巧家县| 安达市| 焉耆| 商丘市| 城市| 凤冈县| 长宁区| 阿坝县| 遵化市| 常州市| 嘉善县| 东安县| 百色市| 镇坪县| 维西| 新巴尔虎左旗| 自贡市| 涪陵区| 上林县| 上饶市| 德清县| 陈巴尔虎旗| 闻喜县| 化德县| 巧家县| 应城市| 阳城县| 丹棱县| 固阳县| 永福县| 山西省| 武宣县| 高清| 呼玛县| 枣庄市| 宜君县| 枣强县| 富裕县| 威海市|