时间为 /Date(1489386788450+0800)/
function GetDate(date)
{
return new Date(parseInt(date.replace("/Date(", "").replace(")/", "").split("+")[0])).Format("yyyy-MM-dd hh:mm:ss")
}
alert((GetDate(要装换的时间));//输出为yyyy-MM-dd hh:mm:ss时间格式
时间为 /Date(1489386788450+0800)/
function GetDate(date)
{
return new Date(parseInt(date.replace("/Date(", "").replace(")/", "").split("+")[0])).Format("yyyy-MM-dd hh:mm:ss")
}
alert((GetDate(要装换的时间));//输出为yyyy-MM-dd hh:mm:ss时间格式