日期:2014-05-16 浏览次数:20500 次
$("#grid").jqGrid({ url:'getdata.php', datatype: 'xml', mtype: 'GET', colNames:[ 'ID','日期', '用户' ], colModel :[ {name:'id', index:'id', width:40}, {name:'logdate', index:'logdate', width:80, editable:false, formatter:'date', formatoptions:{srcformat:'Y-m-d', newformat:'Y-m-d'}, editrules:{date:true} }, {name:'worker', index:'worker', width:60, editable:true, edittype:'select', formatter:'select',editoptions: { size: 1,dataUrl: 'getselect.php?stype=users'}, ...