日期:2014-05-20  浏览次数:20653 次

关于jqGrid的问题
<script type="text/javascript">
$(document).ready(function(){
var url = 'gridAction';
$("#grid").jqGrid({
        url:url,
datatype : 'json',
colNames:['编号','姓名','密码','年龄','地址','生日'],
colModel:[
{name:'id',index:'id',width:90,sorttype:"int"},
{name:'username',index:'name',width:110,sorttype:"int"},
{name:'password',index:'password',width:80},
{name:'age',index:'age',width:80},
{name:'address',index:'address',width:90},
{name:'time',index:'time',width:90}
],
rowNum:10,
rowList:[10,20,30],
pager:"pjmap",
multiselect:false,
sortname:'id',
viewrecords:true,
sortorder:"desc",
jsonReader:{
root:"dataRows",
 repeatitems:false
},
caption:"jqGrid test",
height:220
}).navGrid('pjmap',
{view:true,edit:true,add:false,del:false},
{closeOnEscape:true}
);

});
</script>

红色字体那的url该怎么写?直接写方法名无效。。
url json jqGrid

------解决方案--------------------
url:'contractInfo!find.action',

要这样写