JQuery judgment positive integer finishing summary

VAR TOTALPAGE = Document.GtelementByid (“totalpage”). Value.trim (); // Get Page Var REG = / ^ [1-9] \ D * $ / // The regular expression of 1-9 is first judged whether or not the integer is determined whether or not IF is within 1-Total Page Integer range {IF (Parseint (Searchbox)> 0 && (PARSEINT (Searchbox)> 0 && PARSEINT (SEARCHBOX)
  The above is the full content of this article, I hope this paper will bring a certain help to everyone's learning or work ~ If you have any questions You can send a message to communicate, thank you for your support of Tumi cloud! <= totalPage){
   alert(searchBox);
  }else{
   alert("输入的页码超出指定范围!!!");
   document.getElementById("searchBox").value = ""; //清空
   return;
  }
 }else{
 alert("请输入合法的整数页码!!");
 document.getElementById("searchBox").value = ""; //清空
 return;
 }
 
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment