mui和uniapp跳转外部链接

Hbuilder开发的app,会涉及到跳转H5页面

mui

typescript 复制代码
<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <link rel="stylesheet" href="css/mui.min.css" />
  <link rel="stylesheet" href="css/common/style.css" />
  <title></title>
 </head>
 <body>
  <header id="header" class="mui-bar mui-bar-nav">
      <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
      <h1 class="mui-title" id="title"></h1>
  </header>
  <script type="text/javascript" src="js/mui.min.js"></script>
  <script>
   mui.init();
   mui.plusReady(function () {
    var self = plus.webview.currentWebview();
    var title = self.title;
    document.getElementById("title").innerText = title;
    var url = "https://nt.zjrcbank.com/openplatformgw/app/openplatform/HN/index.html#/entry";
       var embed=plus.webview.create(url,'embed',{top:'44px',bottom:'0px'});
    var ws = plus.webview.currentWebview();
    ws.append(embed); 
    embed.addEventListener('loading',function(){       //当页面加载时
        plus.nativeUI.showWaiting('',{style:'black',modal:false,background:'rgba(0,0,0,0)'});
    },false);
    embed.addEventListener('loaded',function(){       //当页面加载完成时
        plus.nativeUI.closeWaiting();
    },false);
   })
  </script>
 </body>
</html>

uniapp

官网文档:web-view

typescript 复制代码
<web-view :src="webUrl" ></web-view>
相关推荐
2501_916008892 小时前
手机抓包app大全:无需root的安卓抓包软件列表
android·ios·智能手机·小程序·uni-app·iphone·webview
优倍网络10 小时前
宝塔部署websocket服务,后台fastadmin,用户端uniapp
uni-app
墨着染霜华13 小时前
UniApp 微信小程序分享
微信小程序·uni-app
2501_9159214314 小时前
Windows 系统下的 IPA 加密工具实战指南,如何在非 macOS 环境完成 IPA 混淆、加固与工程化处理
android·windows·macos·ios·小程序·uni-app·iphone
iOS阿玮14 小时前
最近苹果审核效率提高了,周末竟然都在审核。
uni-app·app·apple
Lsx-codeShare1 天前
一文读懂 Uniapp 小程序登录流程
前端·javascript·小程序·uni-app
00后程序员张1 天前
接口调试从入门到精通,Fiddler抓包工具、代理配置与HTTPS抓包实战技巧
前端·ios·小程序·https·fiddler·uni-app·webview
酸奶弄死你2 天前
uniapp调用后台接口
uni-app·前后端
游戏开发爱好者82 天前
iOS IPA 上传工具全面解析,从 Transporter 到开心上架(Appuploader)命令行的高效上架实践
android·ios·小程序·https·uni-app·iphone·webview
半开半落3 天前
uniapp通过npm使用第三方库兼容微信小程序
微信小程序·npm·uni-app