好好学习,天天向上

Nothing is impossible to a willing heart.

热爱前端,编程使我快乐 | 邮箱:summerlisi@163.com

123

    //将时间戳转化为普通格式
function getLocalTime(nS) {
return new Date(parseInt(nS)).toLocaleString().replace(/:\d{1,2}$/, ' ');
}
posted @ 2016-04-18 18:01  文思旋风  阅读(105)  评论(0编辑  收藏  举报