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

 

相关文章:

  • 2021-10-18
  • 2021-07-17
  • 2021-12-02
  • 2021-10-19
  • 2021-10-18
  • 2021-08-16
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-02-19
  • 2021-10-30
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案