input file字段选择图片之后怎么实现预览(还未上传到服务器的情况下)

$("#txt_image").on('change',function(){
	 			console.log('on change');

	 			if (this.files && this.files[0] ) {
	 				const reader = new FileReader();

	 				reader.onload = function(e){
	 					$("#book-image-preview").attr('src',e.target.result);

	 				}

	 				reader.readAsDataURL(this.files[0]);

	 			}
	 			
	 		});
×
input file字段选择图片之后怎么实现预览(还未上传到服务器的情况下)

input file字段选择图片之后怎么实现预览(还未上传到服务器的情况下)

$("#txt_image").on('...

查看更多

AI agent 如何翻译网站(标签+动态内容)

先让AI把网站进行i18n化, …