Javascript 将时间戳转换为本地时间
timestamp = new Date().getTime()
timestr = new Date(timestamp - (new Date().getTimezoneOffset())*60*1000)
版权属于:wshon
本文链接:https://blog.wshon.com/2019/01/js-date.html
转载时须注明出处及本声明
timestamp = new Date().getTime()
timestr = new Date(timestamp - (new Date().getTimezoneOffset())*60*1000)
版权属于:wshon
本文链接:https://blog.wshon.com/2019/01/js-date.html
转载时须注明出处及本声明
最新回复