实例:判断两次输入密码是否一致 1.在data函数的return前面,写一个表单验证 2.使用这个表单验证,就用validator 更正:this.password 应该改为this.regForm.password,因为在我的数据data中,password是在regForm的对象之下