加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

hubilder 打包app(链接打包)

发布时间:2020-12-14 04:41:45 所属栏目:大数据 来源:网络整理
导读:!DOCTYPE htmlhtml head meta charset= " utf-8 " title****/title script type= " text/javascript " var ws= null ,embed= null ; // 扩展API加载完毕,现在可以正常调用扩展API function plusReady(){ ws = plus.webview.currentWebview(); ws.addEventLi
<!DOCTYPE html>
<html>
    <head>
    <meta charset="utf-8">
    <title>****</title>
    <script type="text/javascript">
        var ws=null,embed=null;
        // 扩展API加载完毕,现在可以正常调用扩展API 
        function plusReady(){
            ws=plus.webview.currentWebview();
            ws.addEventListener(show,createEmbed,false);
        } 
        // 判断扩展API是否准备,否则监听"plusready"事件
        if(window.plus){
            plusReady();
        }else{
            document.addEventListener("plusready",plusReady,false);
        }
        // 创建子Webview
        function createEmbed(){
            plus.nativeUI.showWaiting(‘‘,{style:black,modal:false,background:rgba(0,0)});
            embed=plus.webview.create(http://*********,embed,{
                top:0px,bottom:0px,position:dock,dock:bottom,bounce:none,scrollIndicator:none,scalable:false,popGesture:none,cachemode: default,videoFullscreen: auto,softinputMode: adjustResize,kernel: WKWebview
            });
            ws.append(embed);
            embed.addEventListener(loaded,function(){
                plus.nativeUI.closeWaiting();
            },false);
            embed.addEventListener(loading,function(){
                plus.nativeUI.showWaiting(‘‘,0)});
            },false);
        }
        createEmbed()
    </script>
    </head>
    <body>
    
    </body>
</html>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读