$("input[type=file]").change(function () {
var fsrc= URL.createObjectURL(this.files[0]);
$("form").find("img").attr("src", fsrc);//这里是要替换的图片标签
$.each(this.files, function (i, o) {//多个遍历
fsrc = blob = URL.createObjectURL(o);
html += "<span>";
html += '<img src="' + fsrc + '" width="51" height="51" alt="" /><i>x</i>';
// html+= '<input type="file" multiple="" name="img[]" class="zm" onclick="selectimg()" />';
html += "</span>";
});
});