jquery이미지확인1 [jquery] 파일첨부 후, 이미지 확인하기 HTML5 12345678910111213141516171819202122232425262728293031HTML5 파일: $(function() { $('#file').change(function(e) { if (window.File) { var input = $('#file').get(0).files[0]; var reader = new FileReader(); $(reader).on('load', function(e) { $('#result').attr('src', this.result); }); reader.readAsDataURL(input); } }); }); Colored by Color Scriptercs 파일: 2017. 1. 30. 이전 1 다음