王迪
王迪
  • 发布:2018-06-13 11:58
  • 更新:2018-06-13 11:58
  • 阅读:967

subNview

分类:HTML5+
mui.plusReady(function() {  
                var self = plus.webview.currentWebview();  
                self.setStyle({  
                    subNViews: [{  
                        id: 'subnview1',  
                        styles: {  
                            top: '100px',  
                            height: '500px',  
                            backgroundColor: '#FF0000'  
                        },  
                        tags: [{  
                            tag: 'font',  
                            id: 'font',  
                            text: '顶部原生子View控件',  
                            textStyles: {  
                                size: '18px'  
                            }  
                        }]  
                    }]  
                });  

                var nw = self.getSubNViews();  
                console.log('---')  
                console.log(JSON.stringify(nw));  
});

这样放上subNViews之后确实是有了,因为console出来了,但是它不显示,是为什么????

2018-06-13 11:58 负责人:无 分享
已邀请:

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