JS判断上传文件类型

  /* * 判断图片类型 */ function checkImgType(ths){ if (ths.value == "") { alert("请上传图片"); return false; } else { if (!/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test
相关文章
相关标签/搜索