ExtJS學習筆記

          Posted on 2008-11-24 23:09 Robert Su 閱讀(113) 評論(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

          主站蜘蛛池模板: 曲阜市| 澎湖县| 卓资县| 太谷县| 吴旗县| 镇沅| 如皋市| 荣成市| 万安县| 尉氏县| 五大连池市| 海林市| 天气| 永和县| 泰顺县| 柳河县| 石屏县| 鄂州市| 石柱| 宜章县| 东乌| 平阳县| 田林县| 锡林浩特市| 龙川县| 同德县| SHOW| 林甸县| 新泰市| 天峨县| 县级市| 吉隆县| 台东县| 板桥市| 香河县| 满城县| 龙胜| 保山市| 定日县| 屏南县| 辽阳市|