moment的一些常用方法 1、安装 # yarn安装法 yarn add moment [官方地址URL](http://momentjs.cn/) # npm安装法 npm install moment --save 2、库的引用 import moment from 'moment' 3、常用方法 1、字符串转为时间 const strTime = '2019/12/01 10:10:00'