jeasyui的datagrid初始查询条件

jeasyui的datagrid初始查询条件可以直接写在定义的url中,如下:

如果通过js来指定查询条件进行初始查询,会发现ajax请求会有2次。

	<table id="job_stat_datagrid" class="easyui-datagrid" style="height:auto" url="list.php?action=get_stat_data&ctime_start={{$init_ctime_start}}&&ctime_end={{$init_ctime_end}}"
			   iconCls="icon-save" toolbar="#job_stat_datagrid_toolsbar"
			   rownumbers="true" singleSelect="false" data-options="pageSize:20,idField:'id',nowrap:false"  pagination="true">
			<thead>
				<tr>
					<th field="admin_name" width="120" >编辑姓名</th>
                    <th field="editor_name" width="120" >编辑昵称</th>
					<th field="comment_num" width="60" >评论数</th>
					<th field="article_num" width="60" >发帖数</th>
                    <th field="news_num" width="60" >发新闻数</th>
					<th field="total_num" width="60" >总数</th>
				</tr>
			</thead>
		</table>

相关文章

$.AJAX()方法中的PROCESSDATA参数 在使用jQuery的$.ajax()方...
form表单提交的几种方式 表单提交方式一:直接利用form表单提...
文章浏览阅读1.3k次。AJAX的无刷新机制使得在注册系统中对于...
文章浏览阅读1.2k次。 本文将解释如何使用AJAX和JSON分析器在...
文章浏览阅读2.2k次。/************************** 创建XML...
文章浏览阅读3.7k次。在ajax应用中,通常一个页面要同时发送...