grgw_old_java/heatsupply2/WebContent/static/baidu/js/tools/counters.js

32 lines
605 B
JavaScript
Raw Normal View History

2025-07-01 14:56:45 +08:00
/**
* Ajax判断页面可以点击几次提交
* creator小z
* @使用简述: 调用counting1()至counting5()的方法分别代表页面的提交次数1至5次
*/
var counting=0;
function counter1(){
if(counting>=1){return false;}
counting++;
return true;
}
function counter2(){
if(counting>=2){return false;}
counting++;
return true;
}
function counter3(){
if(counting>=3){return false;}
counting++;
return true;
}
function counter4(){
if(counting>=4){return false;}
counting++;
return true;
}
function counter5(){
if(counting>=5){return false;}
counting++;
return true;
}