摘要: 一:时间转时间戳:javascript获得时间戳的方法有四种,都是通过实例化时间对象 new Date() 来进一步获取当前的时间戳 1.var timestamp1 = Date.parse(new Date()); // 结果:1477808630000 不推荐这种办法,毫秒级别的数值被转化为0 阅读全文
posted @ 2016-11-07 23:20 ₯₰.❉NىFunny 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: <html><head><script type="text/javascript">function getCookie(c_name){if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "=") if 阅读全文
posted @ 2016-11-07 22:45 ₯₰.❉NىFunny 阅读(100) 评论(0) 推荐(0) 编辑