huai-sian 3 years ago
parent
commit
737134b736
2 changed files with 4 additions and 0 deletions
  1. 2 0
      make_video.html
  2. 2 0
      test_eng.html

+ 2 - 0
make_video.html

@@ -403,11 +403,13 @@
             // nextEl.nextSibling.style.backgroundImage = `url(http://${jsonData.msg})`;
             //console.log($(this).next());
             $(this).next().html('');
+            $(this).html('');
             //$(this).next().text('上傳檔案');
           },
           error: function (error) {
             const nextEl = event.target.nextSibling;
             nextEl.style.backgroundImage = `url(./img/upload_img.png)`;
+            $(this).html('');
             alert('圖片錯誤');
           }
         });

+ 2 - 0
test_eng.html

@@ -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');
           }
         });