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>
相关推荐
木易 士心3 小时前
Uni-App 实现多身份动态切换 TabBar 指南
uni-app
2501_9151063220 小时前
CDN 可以实现 HTTPS 吗?实战要点、部署模式与真机验证流程
网络协议·http·ios·小程序·https·uni-app·iphone
LoveEate2 天前
uniapp 运行/发版微信小程序
微信小程序·小程序·uni-app
fakaifa2 天前
【高级版】沃德政务招商系统源码+uniapp小程序
小程序·uni-app·源码下载·沃德政务招商系统·招商系统源码
weixin_446938872 天前
uniapp vue-i18n如何使用
前端·vue.js·uni-app
有来技术2 天前
UniApp 自定义导航栏适配指南:微信小程序胶囊遮挡、H5 与 App 全端通用方案
微信小程序·uni-app
卷Java3 天前
违规通知功能修改说明
java·数据库·微信小程序·uni-app
卷Java3 天前
用户权限控制功能实现说明
java·服务器·开发语言·数据库·servlet·微信小程序·uni-app
王佳斌4 天前
sass变量默认
uni-app
二饭4 天前
uniapp与webview通信
uni-app