• Mui-页面跳转


    <!DOCTYPE html>
    <html>
    
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet" />
    <script type="text/javascript" charset="utf-8">
        mui.init();
    </script>
    
    </head>
    
    <body>
    <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">窗口管理-跳转子页面</h1>
    </header>
    <nav class="mui-bar mui-bar-tab">
        <a class="mui-tab-item mui-active">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" id="tab2"><!--绑定单击跳转事件不能用这个onclick="openTel();"-->
            <span class="mui-icon mui-icon-phone"></span>
            <span class="mui-tab-label">电话</span>
        </a>
        <a class="mui-tab-item">
            <span class="mui-icon mui-icon-email"></span>
            <span class="mui-tab-label">邮件</span>
        </a>
        <a class="mui-tab-item">
            <span class="mui-icon mui-icon-gear"></span>
            <span class="mui-tab-label">设置</span>
        </a>
    </nav>
    <script type="text/javascript">
        /*判断h5+插件是否加载完毕*/
        mui.plusReady(function(){
            document.getElementById('tab2').addEventListener('tap',function(){
                mui.openWindow({
                    url : 'tel.html',
                    id : 'tel.html'
                });
            });
        });
        
    </script>
    </body>
    
    </html>

    方法一

    tel.html

    <!doctype html>
    <html>
    
    <head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="css/mui.min.css" rel="stylesheet" />
    </head>
    
    <body>
        <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">拨打电话</h1>
        </header>
        <div class="mui-content">
            187306308888
        </div>
    <script src="js/mui.min.js"></script>
    <script type="text/javascript">
        mui.init()
    </script>
    </body>
    
    </html>

    方法二-----

    <!DOCTYPE html>
    <html>
    
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet" />
    <script type="text/javascript" charset="utf-8">
        mui.init();
    </script>
    
    </head>
    
    <body><div class="mui-content">
        <button type="button" onclick="tel();">打电话</button>
    </div>
    <nav class="mui-bar mui-bar-tab">
        <a class="mui-tab-item mui-active">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" id="tab2"><!--绑定单击跳转事件不能用这个onclick="openTel();"-->
            <span class="mui-icon mui-icon-phone"></span>
            <span class="mui-tab-label">电话</span>
        </a>
        <a class="mui-tab-item">
            <span class="mui-icon mui-icon-email"></span>
            <span class="mui-tab-label">邮件</span>
        </a>
        <a class="mui-tab-item">
            <span class="mui-icon mui-icon-gear"></span>
            <span class="mui-tab-label">设置</span>
        </a>
    </nav>
    <script type="text/javascript">
        /*判断h5+插件是否加载完毕*/
        mui.plusReady(function(){
            document.getElementById('tab2').addEventListener('tap',function(){
                mui.openWindow({
                    url : 'tel.html',
                    id : 'tel.html'
                });
            });
        });
        function tel(){
            mui.openWindow({
                url:"tel.html",
                id:"tel.html"
            });
        }
    </script>
    </body>
    
    </html>
  • 相关阅读:
    Java中常见的几种加密算法
    关于redis中过期的key的处理
    Redis 的内存淘汰策略
    AES加密算法原理(加密过程)
    springboot中从配置文件中读取相关参数值
    springboot中切换配置(多个配置文件--生产、开发、测试)
    mysql跨库查询数据
    SpringBoot2.0 的默认连接池----Hikari
    Druid连接池中的缓存机制
    Opus编解码练习
  • 原文地址:https://www.cnblogs.com/fdxjava/p/11073693.html
Copyright © 2020-2023  润新知