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

内置规则怎么设置提示信息。 #280

Open
zeroone2005 opened this issue Aug 29, 2019 · 1 comment
Open

内置规则怎么设置提示信息。 #280

zeroone2005 opened this issue Aug 29, 2019 · 1 comment
Labels

Comments

@zeroone2005
Copy link

内置规则怎么设置提示信息。怎么拦截验证失败后使用自己 的提示方式而不是系统内置的在右侧现实提示信息,比如我想采用模拟提示框

@niceue
Copy link
Owner

niceue commented Feb 9, 2020

首先设置 msgMaker: false 关闭自动生成的消息DOM,然后自己监听 invalid.form 事件,自行处理。
https://validator.niceue.com/docs/events.html#section-1-3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants