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_9160074736 分钟前
苹果商店iOS应用上架费用全面解析:开发者计划与审核费用计算
android·ios·小程序·https·uni-app·iphone·webview
2501_916008892 小时前
如何实现iOS App代码混淆:SwiftShield使用指南
android·ios·小程序·https·uni-app·iphone·webview
2501_916008894 小时前
怎么用 Godot 导出 iOS 应用并上架 App Store?签名字段该填什么?
android·ios·小程序·https·uni-app·iphone·webview
郑州光合科技余经理17 小时前
同城外卖小程序开发:下单成功后,后台导出能不能对上用户端状态
开发语言·前端·git·后端·uni-app·php·ai编程
白远山1 天前
城市电竞陪玩调度系统实战:从派单算法到多端协同的架构拆解
java·架构·uni-app·需求分析
白远山2 天前
上海24小时自助健身房系统软件开发实战指南
java·架构·uni-app·需求分析
白远山3 天前
上海24小时自助健身房系统软件开发实战指南:从需求到部署
java·架构·uni-app·需求分析
海鸥两三3 天前
小程序文档预览 · 进阶面试题
小程序·uni-app·uniapp
海鸥两三3 天前
微信小程序 PDF 预览实践(uni.downloadFile → uni.openDocument)
小程序·uni-app
PedroQue994 天前
uni-app x 事件通信插件重磅上线
前端·uni-app