Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文件编译后的代码错误,路径是/dist/validator/index.js #50

Closed
xinlingqudongX opened this issue Jun 3, 2019 · 1 comment
Closed

Comments

@xinlingqudongX
Copy link

function Validator(presets, params) {
this.result = {};
this.params = null;
this.presets = null;
this.paramsKeys = null;
this.presetKeys = null;
this.invalid = false;
this.message = 'Success';
this.paramsKeys = Object.keys(params);
this.presetKeys = Object.keys(presets);
}

这个地方的两个参数没有初始化
this.paramsKeys = params;
this.presetKeys = presets;
改成这样才行

@klren0312
Copy link

真可怕 这库是文档有问题 还是代码有问题...

@Luncher Luncher closed this as completed Aug 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants