安装
1 |
npm install js-md5 |
引入
1 2 |
import md5 from 'js-md5'; Vue.prototype.$md5 = md5; |
使用
1 |
this.$md5("加密内容") |
安装
1 |
npm install js-md5 |
引入
1 2 |
import md5 from 'js-md5'; Vue.prototype.$md5 = md5; |
使用
1 |
this.$md5("加密内容") |