<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 原生js上傳組件 > 需要實現一次上傳多張圖片的功能 > 最簡單的做法: js部分: ~~~ upload (e) { var FileLists = e.target.files var render = new FileReader() render.readAsDataURL(FileLists[0]) render.onload = e => { console.log(this.$refs) this.isShow = false this.showImg = e.target.result } } ~~~ html部分: ~~~ <div> <div class="l-upload"> <div class="l-upload-item"> <div class="l-upload-show"> <img v-if="isShow" :src="uploadImg" alt="無法顯示"> <img v-else ref="show" :src="showImg" alt="無法顯示"/> </div> <input @change="upload" class="l-upload-file" name="file" type="file" ref="upload" multiple="multiple"> </div> </div> </div> ~~~ 資料參考: [兼容ie,火狐](https://blog.csdn.net/luckyJieXu/article/details/71171603) [FileReader對象](https://blog.csdn.net/zk437092645/article/details/8745647/)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看