- 博客(2)
- 收藏
- 关注
原创 async-validator 的简单使用
const addressValidator = (rule, value, callback) => { //自定义检验 if (!value) { callback(new Error('请输入地址')) } else { callback() }}data() { form: { enterprise_name: '', taxpayer_id: '' }, rules: { enterprise_name: { required: true,.
2021-04-07 18:04:22
1130
2
原创 日期时间格式化
记录个格式化日期时间的方法,方便以后复制function dateFormat(date, format) { //日期时间格式化 date = new Date(date) let obj = { "MM": date.getMonth() + 1, // 月 "dd": date.getDate(), // 日 "HH": date.getHours(), // 时 "mm": date.getMinutes(), // 分 "ss": date.get
2021-02-20 15:28:41
203
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人