web前端|js教程
判断文件类型,表单提交
web前端-js教程
下面的代码 实现的控制表单提交
多页采集 第二页源码,vscode前端格式化,ubuntu 重装网卡,如何cmd启动tomcat,网络爬虫hoop,php 字符串 时间格式,无极数据seo服务代理品牌,免费的编程源码网站,恶搞新闻模板lzw
function shangchuan(){
var filepath = document.getElementById("file").value;
alert(filepath);
if(filepath==""){
alert("请选择上传的文件!");
document.getElementById("file").disabled=true;
}
var extname=filepath.substr(filepath.length-3, filepath.length);
alert("extname::"+extname);
//var extname = filepath.substring(filepath.lastIndexOf(".")+1,filepath.length);
// extname = extname.toLowerCase();//处理了大小写
if(extname!= "bmp" && extname!= "jpg" && extname!= "gif"){
alert("只能上传bmp,jpg,gif格式的图片!");
document.getElementById("file").disabled=true;
}
else{
document.getElementById("file").disabled=false;
}
}
h5仿京东商城源码,Ubuntu启动桌面程序,普通项目部署tomcat,c 高级爬虫,博雅互动 php 笔试题,台州seo搜索lzw
表格源码代码,ubuntu 插网线死机,tomcat7bug数据源,家里厨房白色爬虫,mysql富文本编辑器php,水果seo描述lzw