通过查看来源你可以看到:
/**
* Bind an event handler to the "submit" JavaScript event, or trigger that event on an element.
*
* @param handler A function to execute each time the event is triggered.
* @see {@link https://api.jquery.com/submit/}
* @since 1.0
* @deprecated 3.3
*/
但是 jQuery 博客 here 中似乎没有提到这一点。现在它已被标记为已弃用,有什么替代方案吗?
最佳答案
关于jQuery.submit 从 3.3 开始已被弃用,替代方案是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49038654/