<pre name="code" class="javascript">
按钮点击5秒后不能再点
<span style="font-family: 'Microsoft YaHei';">function doDisableClick()</span>
{
var link = document.getElementById("pay_btn");
link.disabled=true;
setTimeout("doEnable();", 1000 * 5);
}
function doEnable()
{
document.getElementById("pay_btn").disabled=false;
}
<span style="font-size:14px;">var params = $("#FormID").serialize();
$.post("/url",params,function(obj){
if(obj.success)
{
dosomething.......
}
},'json');</span><span style="font-size:24px;">
</span>