easyui学习笔记——事件和方法的使用方法

来源:互联网 发布:key tronic 淘宝 编辑:程序博客网 时间:2024/06/02 03:11
onChange事件:$('#select_percent').combobox({      onChange:function(newValue,oldValue){          alert(newValue);          load(newValue);      }  }); getValue方法:$("#select_percent").combobox("getValue"); 

 

例子:

<body>      <h1>Form test by </h1>      <div class="easyui-pagination" style="background:#efefef;border:1px solid #ccc;" data-options="                 total:439,                 buttons:[{iconCls:'icon-add',handler:function(){alert('add');}   },                   {                    iconCls:'icon-cut',                    handler:function(){                      alert('cut');                    }} ,{                    iconCls:'icon-save',                    handler:function(){                      alert('save');                    }                     }],                 onSelectPage:function(num,page){                   $(this).pagination('loading');                   alert('num:'+num+'page:'+page);                   $(this).pagination('loaded');                 }                                   ">                        </div></body>

效果图:

转自:http://hi.baidu.com/tomte/item/5f5aaa874d25fccdef083dd1

原创粉丝点击