会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
﹏Sakura
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
博客园
首页
新随笔
联系
管理
订阅
2012年7月23日
JS 时间戳 时间字符串 时间类型相互转换
摘要: <script type="text/javascript"> var d = parseInt(new Date().valueOf()/1000); alert(d); //当前时间戳 var d2 = new Date(d*1000); //根据时间戳生成的时间对象 alert(d2.toString()); //返回的时间字符串</script>
阅读全文
posted @ 2012-07-23 15:23 ﹏Sakura
阅读(1555)
评论(0)
推荐(0)
编辑
公告