var reader = new FileReader(); reader.readAsDataURL(input.files[0]); reader.onload = function (e) { $('#blah').attr('src', e.target.result); }
← Error 处理 BOM →