摘要: //第一种 2 function getLocalTime(nS) { 3 return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); 4 } 5 alert(getLocalTime(1293072 阅读全文
posted @ 2018-07-21 10:23 追梦的老头 阅读(442) 评论(0) 推荐(0)