1.2.0 • Published 4 years ago
web-fe-tools v1.2.0
Install
npm i web-fe-tools
Usage
//main.js
import Tools from 'web-fe-tools'
// for example a Vue program
Vue.prototype.$tools = Tools
// app.vue
export defaut {
data() {
return {
time: new Date()
}
}
methods: {
this.time = this.$tools.formatTime(this.time, 'YYYY-MM-DD')
}
}
Methods
resetHeight,
htmlDecode,
htmlEncode,
formatTime,
strLength,
thousandly,
getDefaultParams,
filterHTMLTag,
fileDownload,
constantStore,
relativeTime,
distinct