>  기사  >  웹 프론트엔드  >  easyui 如何控制点击按钮才加载 在线等 速给分_html/css_WEB-ITnose

easyui 如何控制点击按钮才加载 在线等 速给分_html/css_WEB-ITnose

WBOY
WBOY원래의
2016-06-24 12:25:341046검색

easyui加载问题

一开始点击链接不加载数据  按下查询按钮才去加载 这要什么实现
附加代码
<table id="gridTable" class="easyui-datagrid"  data-options="rownumbers:true,                                                                 striped:true,                                                                 singleSelect:true,                                                                 nowrap:true,                                                                 collapsible:false,                                                                 pagination:true,                                                                 fitColumns:true,                                                                 singleSelect:true,                                                                 border:true,                                                                 pageList: [30,50,80,100],                                                                 @*url:'newgetResList',*@                                                                                                                                  toolbar:'#gridTb',                                                                 fit:true">         <thead>            <tr>               <th data-options="field:'Id',width:50,align:'center'">号码</th>               <th data-options="field:'PlayName',width:100,align:'center'">姓名</th>
$("#searchBtn").click(function () {            var Id = $("#Id").val();            var fafangyuan = $("#fafangyuan").val();                       $("#gridTable").datagrid('url:newgetResList', { Id: Id, fafangyuan: fafangyuan, AdditionRegisterType: AdditionRegisterType, GameType: GameType, CreationTime: CreationTime, PlayName: PlayName, Sex: Sex, IdCard: IdCard, Bmstate: Bmstate                        });                    });

回复讨论(解决方案)

table的data-options中去掉Url

自己已解决?你没看到我已经将url注释了?     不过只有你一个人来回答  分还是给你了

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.