Skip to content

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

@mathuse

Description

@mathuse

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions