1. <span id="z4nqb"></span>
      ????????? appframework打開外部頁面鏈接方法 ?????????

      appframework

      一、新建一個(gè)空白的iframe的view——exteLink001View(備注:新建的view的ID中必須包括數(shù)字),通過JS自定義函數(shù)動(dòng)態(tài)修改iframe的src實(shí)現(xiàn)。

      <!-- exteLink001View Top-->
          <div class="view" id="exteLink001View" style="position:fixed;overflow:hidden;z-index:190;height:100vh;background:rgba(255,255,255,1);">
            <div class="clearfix" style="width:100%; height:50px;padding:10px;">
              <span style="display:inline-block;width:100px;float:left;font-size:18px;line-height:30px;">
                <i class="fa fa-file-text"></i>&#8194;<span style="font-size:14px;">外部頁面</span>
              </span>
              <a href="#main" data-transition='up-reveal:dismiss' style="display: inline-block; float: right; width: 30px;
              height:30px; box-shadow: 0 0 3px #ccc; text-align: center; line-height:33px; border-radius: 100%; font-weight: bold;">╳</a>
            </div>
            <iframe id='exteLink' align='center' marginwidth='0' marginheight='0' hspace='0' vspace='0' frameborder='0' src='' allowtransparency="false" style="width:100%;height:100%"></iframe>
          </div>
          
          <script>
            function iframeSrc(exteLinkUrl)
            {
              document.getElementById("exteLink").src=exteLinkUrl;
            }
          </script>
      <!-- exteLink001View End-->
          
      <a href="#exteLink001View" data-transition="up-reveal" onclick="iframeSrc('http://www.yazine.com')">XXX</a>


      二、appframework原生外部跳轉(zhuǎn)鏈接

      <a href="http://www.yazine.com" data-ignore="ture">XXX</a>


      這里建議使用第一種,由于微信或其它網(wǎng)站禁止文章被iframe嵌套,所以這時(shí)候只能用第二種方法。

      1. <span id="z4nqb"></span>
        午夜黄色动漫 | 亚洲国产豆花 | 久热精品免费 | 九色在线观看 | 亚洲精品乱码久久久久99 | 午夜男女羞羞影院 | 国产精品秘 久久久久久奇米影视 | 尤 物视频在线播放 | 加勒比蜜桃日韩成人 | 欧美国产大屌操疼 |