摘要: 判断是上传的是否是.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. 阅读全文
posted @ 2012-04-14 00:19 酒沉吟 阅读(943) 评论(0) 推荐(0) 编辑