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

 

posted on 2020-04-25 15:13  大话人生  阅读(1697)  评论(0编辑  收藏  举报