input[type=file]使って投稿画像を表示する時、 大抵の場合はFileReaderオブジェクトのreadAsDataURLメソッドを使うサンプルをよく見かけるけど、 Android4.0だと動作が不安定だった。 $(function(){ var $input = $('#js-input'), $result = $('#js-result'); $input.on('change', function(e){ var file = e.target.files[0]; if (!file) { return; }; var filereader = new FileReader(); filereader.onload = function(e){ var url = e.target.result, $img = $('<img>').on('load error', f