Jony

Results 13 comments of Jony

如果是要禁用一个字段的验证,不需要移除规则,只需要给 input 添加 HTML5 的 `novalidate` 属性。 如果实在要移除可以调用实例方法:`setField` https://validator.niceue.com/docs/methods.html#section-3-2

看报错,后台没有支持 `application/x-www-form-urlencoded` 的content-type

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

通过js在大div上初始化 ```javascript $("#bigDIV").validator(options) ```

@loong95 这是默认行为,因为name相同会认为是一组。如果需要分别提示,只需要给input添加不同的id即可

```html ``` 1、少了结束引号; 2、规则参数里面逗号后需要加空格

同样报这个错,好像是因为 URL 太长,导致后面请求携带的 Referer 字段太长,然后就报 431 Request Header Fields Too Large ![image](https://user-images.githubusercontent.com/1498854/140455903-dead1b93-b880-4651-8857-8ff984cc0814.png)

@a597873885 并没有修复。你可能是在 **旧的 Edge** 测试的,请升级到 Edge 102。 windows UA 为: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.124 Safari/537.36 Edg/102.0.1245.41` 另外Edge在 Android、iOS 平台的UA也不一致,参考 [https://docs.microsoft.com/en-us/microsoft-edge/web-platform/user-agent-guidance#user-agent-strings](https://docs.microsoft.com/en-us/microsoft-edge/web-platform/user-agent-guidance#user-agent-strings) ![image](https://user-images.githubusercontent.com/1498854/175192570-9b270ab1-e0c3-42a2-a5c1-4e739064c97e.png) 所以最终修复代码: ```js...