htmlinput file图片上传预览js

    技术2022-07-11  131

    $('body').on('change','#file_upload',function(){ var read=new FileReader(); read.readAsDataURL(this.files[0]); read.onload=function(){ $('#url_img').attr('src',read.result); }; }); ···
    Processed: 0.010, SQL: 9