摘要:
判断是上传的是否是.JPG图片 JS代码 <script type="text/javascript"> function chkPhoto(fnUpload) { var filename = fnUpload.value; var mime = filename.toLowerCase().substr(filename.lastIndexOf(".")); if (mime!=".jpg") { alert("请选择JPG格式的图片!"); fnUpload.outerHTML=fnUpload. 阅读全文