save: function(){ var data = this.getData(); //表单检测 if (!data.password||!data.verify){ pubjs.alert(LANG('请填写密码。')); return false; } if (data.password !== data.verify){ pubjs.alert(LANG('两次密码输入不一致。')); return false; } pubjs.loading.show(); pubjs.data.put('/user/setpassword', { 'Password': data.password }, this, 'onSave'); },