32 lines
605 B
JavaScript
32 lines
605 B
JavaScript
|
|
|||
|
/**
|
|||
|
* 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;
|
|||
|
}
|