shortid:生成短的id

github源码路径:https://github.com/dylang/shortid

vue插件安装:

  npm i shortid --save   :源码安装,需要编译,所以使用save

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

"dependencies": {
"shortid": "^2.2.15",
"vue": "^2.5.2",
"vue-router": "^3.0.1"
},

 

posted on 2020-04-24 16:56  大话人生  阅读(501)  评论(0)    收藏  举报