1.0 js Helper
返回上一页/下一页
返回上一页history.go(-1), history.back()返回两个页面: history.go(-2);
返回下一页:window.history.forward()
window.history.go(返回第几页,也可以使用访问过的URL)
js /Date(.....)/ 格式转换为 日期格式
function FormatDate(time) {
if (time != null) {
var date = new Date(parseInt(time.replace("/Date(", "").replace(")/", ""), 10));
var month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
var currentDate = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
return date.getFullYear() + "年" + month + "月" + currentDate;+"日"
}
return "";
}

浙公网安备 33010602011771号