vue-time-formater
v2.0.0
Published
时间戳转换工具
Downloads
8
Readme
安装依赖
npm i vue-time-formater
全局注册 main.js中引入依赖
import timeformater from 'vue-time-formater' Vue.prototype.timeformater = timeformater
局部注册(在你所使用的vue里注册)
import timeformater from 'vue-time-formater'
项目中使用
console.log(this.timeformater('1528094422381'))