Vue格式化时间插件moment

git地址:https://github.com/moment/moment

1.进入Vue项目目录

2.npm i moment --save:编码安装

安装完成后,会在项目的package.json文件中显示moment插件,如下:

  "dependencies": {
    "moment": "^2.24.0",
    "shortid": "^2.2.15",
    "vue": "^2.5.2",
    "vue-router": "^3.0.1"
  },
原文地址:https://www.cnblogs.com/jingzaixin/p/12773163.html