向前奔跑的蚂蚁

gogogo


  • Home

  • Archives

Date交互

Posted on 2017-07-06

关于Date对象的使用经验

YY-MM-DD

JSON.stringify( new Date()  ).replace(/T.*|"/g, "")
//2017-07-06

yyyy-mm-dd HH:mm:ss:fff

JSON.stringify(
        new Date()
      ).replace(/T|"|\..*/g," ").trim()    //2017-07-06 03:25:11
# 技术 # 经验 # 前端
数组去重
图片是否支持canWebP格式
  • Table of Contents
  • Overview
Chant_Lee

Chant_Lee

写好每一段代码

20 posts
11 tags
  1. 1. 关于Date对象的使用经验
© 2019 Chant_Lee
Powered by Hexo
Theme - NexT.Pisces