javascript中json格式转为字符串

function ConvertJSONDateToJSDateObject(JSONDateString) {
    var date = new Date(parseInt(JSONDateString.replace("/Date(", "").replace(")/", ""), 10)).toLocaleDateString();
return date;
}

你可能感兴趣的:(javascript中json格式转为字符串)