0 0

jquery easy ui datagrid data-options 的url怎样获得后台java数据5

请教一下jquery easy ui datagrid

里data-options="singleSelect:true,collapsible:true,url:'${actionBean.jsonArray}

url怎样从java后台取得json对象啊


我用的data-options="singleSelect:true,collapsible:true,url:'${actionBean.jsonArray}',method:'get'">

获得不了json数据,谢谢
2014年7月11日 14:52

2个答案 按时间排序 按投票排序

0 0

url值应该默认是url地址。
<table class="easyui-datagrid" style="width:400px;height:250px"
        data-options="url:'/XXXXXX.action',fitColumns:true,singleSelect:true">
    <thead>
        <tr>
            <th data-options="field:'code',width:100">Code</th>
            <th data-options="field:'name',width:100">Name</th>
            <th data-options="field:'price',width:100,align:'right'">Price</th>
        </tr>
    </thead>
</table>

2014年7月14日 13:46
0 0

url 应该是访问java提供的接口地址来获取json格式数据吧

2014年7月11日 15:27

相关推荐

Global site tag (gtag.js) - Google Analytics