|
@@ -414,12 +414,14 @@
|
|
|
const nextEl = event.target.nextSibling;
|
|
|
nextEl.style.backgroundImage = `url(http://${jsonData.msg})`;
|
|
|
//console.log($(this).next());
|
|
|
+ $(this).html('');
|
|
|
$(this).next().html('');
|
|
|
//$(this).next().text('上傳檔案');
|
|
|
},
|
|
|
error: function (error) {
|
|
|
const nextEl = event.target.nextSibling;
|
|
|
nextEl.style.backgroundImage = `url(./img/upload_img.png)`;
|
|
|
+ $(this).html('');
|
|
|
alert('Image Error');
|
|
|
}
|
|
|
});
|