uniapp使用uview时表单校验失效 解决方案 若在页面中使用表单校验 onReady() { this.$refs.uForm.setRules(this.rules); } 若在组件中使用表单校验 mounted() { this.$refs.uForm.setRules(this.rules); } 页面生命周期与组件生命周期不同,若都使用onReady会导致H5或APP无法校验表单的情况。