在页面编写一个<input>
<input type="hidden" value="false" id="committed" />
<a href="javascript:" οnclick="handle()">确认提交</a>
添加JavaScript代码(用jquery)
<script type="text/javascript">
window.handle = function() {
var isCommitted = $("#committed").val();
if(isCommitted=="false"){
$("#committed").val("true");
//代码
}else{
retrun false;
}
};
</script>