javascript笔记——jqGrid 格式化时间列

时间:2022-12-27 03:17:27
{

name:'startTime',

sortable:false,

editable:true,

width:300,

sorttype:'date',

//unformat:startTime,

editoptions:{

  dataInit:function(element){

  $(element).datetimepicker({

    language:'zh-CN',

    weekstart:1,

    todayBtn:1,

    autoClose:1,

    todayHighlight:1,

    startView:2,

    forceParse:0,

    showMeridian:1,

    format:'yyyy-mm-dd hh:ii:ss'

        })

     }

   }

}