jquery時間戳格式化!!!

//第一種 function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/,' '); } alert(getLocalTime(1293072805)); //結果是2010年12月23日 10:53 //第二種 function getLocalTime
相關文章
相關標籤/搜索