html上传图片之前在网页预览实现_html/css
来源:懂视网
责编:小采
时间:2020-11-27 16:38:11
html上传图片之前在网页预览实现_html/css
html上传图片之前在网页预览实现_html/css_WEB-ITnose:```preview image $('input[type=file]').change(function(e){ reader = new FileReader(); reader.readAsDataURL(e.target.files[0]); reader.onload = function(){ $('body').append($('', {src: reader.result})); }; });```
导读html上传图片之前在网页预览实现_html/css_WEB-ITnose:```preview image $('input[type=file]').change(function(e){ reader = new FileReader(); reader.readAsDataURL(e.target.files[0]); reader.onload = function(){ $('body').append($('', {src: reader.result})); }; });```

html上传图片之前在网页预览实现_html/css
html上传图片之前在网页预览实现_html/css_WEB-ITnose:```preview image $('input[type=file]').change(function(e){ reader = new FileReader(); reader.readAsDataURL(e.target.files[0]); reader.onload = function(){ $('body').append($('', {src: reader.result})); }; });```