1、
$('#submit-btn').click(function(event){ event.preventDefault();//每个ajax请求前都加上这句,阻止默认的事件触发。否则可能会引起 http请求canceled $.ajax({...}); })
本文共 197 字,大约阅读时间需要 1 分钟。
1、
$('#submit-btn').click(function(event){ event.preventDefault();//每个ajax请求前都加上这句,阻止默认的事件触发。否则可能会引起 http请求canceled $.ajax({...}); })
转载于:https://www.cnblogs.com/GetLastError/p/8337043.html