public/upload.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function checkForm()
{
var strUploadFile=document.getElementById('uploadFile').value;
if (strUploadFile=="")
{
alert("提示:\r您还没有选择上传的文件!");
return false;
}
var nameLen=strUploadFile.length;
var rightName=strUploadFile.substr(nameLen-4,4).toLowerCase();
var sAllowExt = "<%=fjkey%>";
var str = document.getElementById('uploadFile').value;
var rightName=str.substr(str.lastIndexOf('.')+1,str.length - str.lastIndexOf('.')).toLowerCase();
if(sAllowExt.indexOf(rightName)==-1)
{
alert('格式不对,只能上传'+sAllowExt+'\r如需要上传其他格式文件,请联系管理员!');
return false;
}
showwait();
}
function down()
{
if(document.getElementById('fjlb').value=='')
{
alert('未选中文件');
return false;
}
else
{
var num=Math.random();
var littleproduct=document.getElementById("fjlb");
var cindex = littleproduct.selectedIndex;
var cText = littleproduct.options[cindex].text;
var cValue = littleproduct.options[cindex].value;
window.open ("../file_down.aspx?tmp="+num+"&number="+cValue+"", "_blank", "height=1, width=1,toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no")
}
后面还有 33 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
