<form action="xxx" method="post"> <button type="submit" class="tijiao">提交</button> </form>
$(".tijiao").click(function(){ $.post(xxx, $('.alert-form').serialize(), function(result){}) })
<form action="xxx" method="post"> <input type="submit" class="tijiao" value="提交"/> </form>
<form action="xxx" method="post"> <input type="button" class="tijiao" value="提交"/> </form>
解决jquery使用ajax提交button标签时重复提交了。
原文地址:http://blog.csdn.net/jackdowson123/article/details/42525173