Skip to content

// 如果用户将数量设为 0 或者不是一个数字,则也跳过 if ($input.val() == 0 || isNaN($input.val())) { return; } #89

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

Open
mathuse opened this issue Oct 15, 2024 · 0 comments

Comments

@mathuse
Copy link

mathuse commented Oct 15, 2024

购物车模板中这句代码会造成后端验证时不能匹配验证提示,例如前端不输入数量,后端的提示是 “商品不能为空。” 因为items整个是空的,但这种提示不符合逻辑,符合逻辑的提示应该是 “商品数量不能为空”

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

1 participant