首页 > 技术文章 > Vue格式化时间插件moment

jingzaixin 2020-04-25 15:13 原文

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"
  },

 

推荐阅读