From 2235aecd7dcb8f9c34673fd1bdbca209143d162a Mon Sep 17 00:00:00 2001 From: lice <1981220267@qq.com> Date: Wed, 25 Oct 2017 19:24:39 +0800 Subject: [PATCH] Update code.js --- qrcode/code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrcode/code.js b/qrcode/code.js index 10a76d2..ca32695 100644 --- a/qrcode/code.js +++ b/qrcode/code.js @@ -18,7 +18,7 @@ $(function() { return window[window.webkitURL ? 'webkitURL' : 'URL']['createObjectURL'](blob); }; img.src = getUrl(this.files[0]); - $('.logo').append(img); + $('.logo').html(img); } }) $('.makeEr').on('click', function() { @@ -66,4 +66,4 @@ $(function() { // }else{ // img.onload=callback; // } -}) \ No newline at end of file +})