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

32 lines
605 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 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;
}