miniui
的事件

function selectionChanged(){
       var rows = grid.getSelecteds();
       if(rows.length>1){
           nui.get("update").disable();
           
       }else{
           nui.get("update").enable();
           
       }
    }

  <div class="nui-fit">
	 <div id="datagrid1" class="nui-datagrid" style="width:100%;height:100%;" idField="id"
	  url="<%=contextPath%>/jxjc/qc/query.do"
	  sizeList=[5,10,20,50,100] multiSelect="true" pageSize="10" onselectionchanged="selectionChanged">
	    <div property="columns" >
	      <div type="indexcolumn"></div>
	      <div type="checkcolumn"></div>
	      <div field="xn" headerAlign="center">学年</div>
	      <div field="xq" headerAlign="center">学期</div>
	      <div field="jsxm" headerAlign="center">教师姓名</div>
	      <div field="jcr" headerAlign="center">检查人</div>
	      <div field="jcrq" headerAlign="center">检查日期</div>
	    </div>
	 </div>
  </div>


你可能感兴趣的:(eclipse,function)