2013年5月13日
摘要: date.UTC的结果和其他可能存在时差,需要进行一些处理 14 //普通时间toUNIX时间 15 function get_unixtime(str) 16 { 17 str = str.replace(/-/g, "/"); 18 var date = new Date(str); 19 var unixtime = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), 20 date.getHours(), date.getMinutes(),... 阅读全文
posted @ 2013-05-13 15:43 NKHe!!oWor!d 阅读(399) 评论(0) 推荐(0) 编辑