Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用一个表单验证器,它监听提交事件,但我决定发送一个带有表单字段的 ajax 发布请求,而不是表单提交。
现在我不知道如何抛出提交事件。YUI 的 node-event-simulate 模块只能模拟点击和鼠标事件。
使用您的验证器.validate()方法;)
.validate()