简体   繁体   中英

Prevent page reloading after jQuery post

I wouldn't ask you if other solutions work, but neither e.preventDefault() nor return false works. When I use prevent default ajax doesn't make post request. $.post also doesn't work. And with return false at the end of submit function doesn't have any affect

只需将 return 添加到 onsubmit 并将 false 返回到函数

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM