Easyui datagrid日期格式化(史上最简单的格式化方法)
{field: 'AddTime', title: '添加时间', width: 100, align: 'center',
formatter: function (value) {
var dateMat = new Date(parseInt(value.replace("/Date(","").replace(")/",""),10));
var year = dateMat.getFullYear();
var month = dateMat.getMonth() + 1;
var day = dateMat.getDate();
return year + "-" + month + "-" + day;
}
}