js把毫秒值轉換成時間格式yyyy-mm-dd 字符串格式與時間互轉

//str是毫秒值字符串 //把毫秒值解析成時間格式 function getMyDate(str) {     var oDate = new Date(str),     oYear = oDate.getFullYear(),     oMonth = oDate.getMonth()+1,     oDay = oDate.getDate(),     oHour = oDate
相關文章
相關標籤/搜索