MQ17
MQ17
  • 发布:2015-07-28 00:51
  • 更新:2015-07-28 01:03
  • 阅读:2982

WebView添加多个子窗口问题

分类:Native.js

今天遇到一个不知所措的问天

function createPoint(webView){  
            if(webView != null){  
                var wsubPoint = plus.webview.create("map_point.html",'map_point',{width:47, height:47, left:20, bottom:20, background:"transparent"});  
                webView.append(wsubPoint);  
            }  
        }  

function createLayer(webView){  
            if(webView != null){  
                var wsubLayer = plus.webview.create('map_layer.html','map_layer',{width:47, height:47, right:20, bottom:20, background:"transparent"});  
                webView.append(wsubLayer);  
            }  
        }  

mui.plusReady(function(){  
            createPoint(plus.webview.currentWebview());  
            createLayer(plus.webview.currentWebview());  
        });

添加多个窗口的时候前面添加的没有显示,只是显示了最后添加的,不知这个是不是一个BUG

2015-07-28 00:51 负责人:无 分享
已邀请:
[已删除]

[已删除]

子webview 只会显示 左后添加的那个

  • MQ17 (作者)

    为什么会这样呢?怎么才能添加多个?

    2015-07-28 01:09

  • [已删除]

    添加多个子页面 然后通过 show hide 控制 只有一个可以显示出来

    2015-07-28 12:47

该问题目前已经被锁定, 无法添加新回复