var page_num=document.getElementById("page").value;
var exp=/^d*$/;
var objExp=new RegExp(exp);
if(page_num==""){
alert("不能为空");
submit = false;
}else if(!objExp.test(page_num)){
alert("得是数字");
submit = false;
}
return submit;
}
';
return $this->_result;
}
}
?>
复制代码
2、调用示例
$page = new Pagination($table, 5, 'page');
while($row = $page->getRecord()){
echo $row[0],' ';
}
echo $page->getPageBar('?',8, 1);
?>
复制代码
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn