随笔分类 -  JavaScript

javascript中日期格式与时间戳之间的转化
摘要:日期格式与时间戳之间的转化一:日期格式转化为时间戳function timeTodate(date){ var new_str = date.replace(/:/g,'-'); new_str = new_str.replace(/ /g,'-'); var arr = new_... 阅读全文
posted @ 2015-04-29 17:08 猿人谷 阅读(558) 评论(2) 推荐(0) 编辑