日期:2014-05-16  浏览次数:20368 次

easyui-datagrid 分页用不来 求帮助补代码
=====================前台界面============================
 <table id="conList" class="easyui-datagrid">
                <thead>
                    <tr>
                        <th data-options="field:'id',width:90,hidden:true">员工号</th>
                        <th data-options="field:'employeeNumber_C',width:90">员工号</th>
                        <th data-options="field:'accountManager_C',width:80">姓名</th>
                        <th data-options="field:'phone_C',width:180">联系方式</th>
                        <th data-options="field:'position_C',width:180">职务</th>
                        <th data-options="field:'industry_C',width:80">行业</th>
                        <th data-options="field:'province_C',width:80">省份</th>
                        <th data-options="field:'responsibleRegional_C',width:80">销售大区</th>
                        <th data-options="field:'lineManager_C',width:80">直属经理</th>
                    </tr>
                </thead>
            </table>

=====================JS============================

$(document).ready(function () {

        $('#conList').datagrid({
            pagination: true,//分页控件
            //pageNumber: 1,
            pageList: [10, 20, 30, 40, 50],
            url: '/Contacts_BClient/IndexJson',
            method: 'get',
            width: '100%',
            height: '310',
            rownumbers: true,
            singleSelect: true,
     &nb