<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                #### 第一中: > 注意:第一種在微信里面的wap頁面無效,是什么原因我不知道,,所以使用第二種 ~~~ textCopy(t) { const that = this // 如果當前瀏覽器版本不兼容navigator.clipboard if (!navigator.clipboard) { var ele = document.createElement("input"); ele.value = t; document.body.appendChild(ele); ele.select(); document.execCommand("copy"); document.body.removeChild(ele); if (document.execCommand("copy")) { that.$message({message: '??????? ?????', type: 'success'}); } else { that.$message({message: '??????? ?????', type: 'success'}); } } else { navigator.clipboard.writeText(t).then(function () { that.$message({message: '??????? ?????', type: 'success'}); }).catch(function () { that.$message({message: '??????? ?????', type: 'success'}); }) } } ~~~ #### 第二中: ``` npm install clipboard --save ``` 或者使用 CDN: ~~~html <script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.10/dist/clipboard.min.js"></script> ~~~ html: ~~~ <div data-clipboard-text="哈哈哈哈" class="copy_text">點擊復制</div> ~~~ js: ~~~ copyInit(){ var clipboard = new Clipboard('.copy_text'); clipboard.on('success', function (e) { Toast('??????? ?????'); e.clearSelection(); }); clipboard.on('error', function (e) { Toast('失敗x1'); }); } ~~~
                  <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>

                              哎呀哎呀视频在线观看