|
楼主 |
发表于 2011-11-10 09:48:47
|
显示全部楼层
底下这个是 防止提交按钮过快点击的简单 js:
<script language= "javascript " type= "text/javascript ">
function Post()
{
document.getElementById( "btnPost ").disabled = true;
window.setInterval( "Show() ",2000);
}
function Show()
{
document.getElementById( "btnPost ").disabled = false;
}
</script>
<input type=button id= "btnPost " onclick= "ost() " value= "提交 " />
希望对大家有帮助 |
|