用这个函数转化一下就可以了,这是当前表示的毫秒数
var str="/Date(1386437981863)/";
ChangeDateFormat(str);//调用函数得到转化后的结果是(xxxx-xx-xx xx:xx:xx);年,月,日,十,分,秒
//转化时间函数
function ChangeDateFormat(val)
{
if (val != null)
{
var date = new Date(parseInt(val.replace("/Date(", "").replace(")/", ""), 10));
//月份为0-11,所以+1,月份小于10时补个0
var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
return date.getFullYear() + "-" + month + "-" + currentDate + " " + hours + ":" + minutes + ":" + seconds;
}
return "";
}