//通過(guò)序列化轉(zhuǎn)換出來(lái)的json,如果里面有DateTime格式的,就不會(huì)正常顯示時(shí)間,用下面的方法就可以了 var date=renderTime(json.AddDateTime); //把讀出來(lái)的json格式時(shí)間傳入這個(gè)方法內(nèi) function renderTime(date){ var da = new Date(parseInt(date.replace("/Date(","").replace(")/","").split("+")[0])); return da.getFullYear()+"-"+ (da.getMonth()+1)+"-" +da.getDate()+" " +da.getHours()+":"+da.getSeconds()+":"+da.getMinutes(); } //最后顯示時(shí)間的格式就是 2012-4-17 22:58 了