为了账号安全,请及时绑定邮箱和手机立即绑定

vue表单验证判断如何优化到最精简?

vue表单验证判断如何优化到最精简?

慕无忌1623718 2019-02-26 18:49:15
// 这种判断还有更好的方式吗?  if (    this.formSetting.ShopName     || this.form.Value     || this.form.arning     || this.form.phone     || this.form.titile     || this.form.user     || this.form.setting   ) {     Toast('请填写完成信息');    return;   }
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 614 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信