摘要: addImg(event) { var imgFile=event.target.files[0]; //判断类型是不是图片 if(!/image\/\w+/.test(imgFile.type)){ alert("请确保文件为图像类型"); return ; } //通过html5 特性fileR 阅读全文
posted @ 2019-03-24 19:57 前端小厨-美食博主 阅读(8700) 评论(0) 推荐(1)