- ajax-利用event机制阻止表单提交
$(function(){ $('#AA').click(function(event){ event.preventDefault(); $.post('a.php',function(data){ console.log(data); }) }) })
- 通过表单属性
<form action="clock.html" method="post" onsubmit="return checkLength()">
ajax--阻止表单提交
最新推荐文章于 2023-03-24 10:33:55 发布