import moment from 'moment/locale/zh-cn' Vue.prototype.$moment = moment moment.locale('zh-cn')
import moment from 'moment'//导入文件 Vue.prototype.$moment = moment;//赋值使用