Web/DotBBS_Net/Js/Common.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function ShowNav(id){
document.getElementById(id).style.display='block';
}
function HideNav(id){
document.getElementById(id).style.display='none';
}
function IsCharNum(s)
{
var patrn=/[a-zA-Z0-9]+[a-zA-Z0-9_]+/;
if (!patrn.exec(s)) return false;
return true;
}
function IsNum(s)
{
var patrn=/[1-9]+[0-9_]?/;
if (!patrn.exec(s)) return false;
return true;
}
function IsValidEMail(s)
{
var patrn=/(\S)+[@]{1}(\S)+[.]{1}(\w)+/;
if (!patrn.exec(s)) return false;
return true;
}
function GoPage(id,file,bigPage,smallClassID)
{
txtPage=document.getElementById(id);
if(txtPage.value=="")
{
alert("请输入页码!");
txtPage.focus();
return;
}
if(!IsNum(txtPage.value))
{
alert("请输入数字!"+txtPage.value);
txtPage.focus();
return;
}
window.location=file+"&page="+txtPage.value+"&BigPage="+bigPage+"&SmallClassID="+smallClassID;
}
function TopicGoPage(id,file,bigPage,TID)
{
txtPage=document.getElementById(id);
if(txtPage.value=="")
{
alert("请输入页码!");
txtPage.focus();
return;
}
if(!IsNum(txtPage.value))
{
alert("请输入数字!"+txtPage.value);
后面还有 19 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。