ext监听事件方法[初级篇]


<script>function a(){alert('some thing');}Ext.onReady(function(){
Ext.get("btnAlert").addListener("click",a);//这里监听
//或者使用
Ext.get("btnAlert").on("click",a);//效果相同
});</script>
<input id="btnAlert" type="button" value="alert框" />
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3