用5+plus.nativeObj.View新建一个position为static的view。append到 nvue 页面。会发现,view不在页面中。这种现象正常吗?
代码如下:
const view = new plus.nativeObj.View('test', {
backgroundColor: '#000',
position: 'static',
top: '100px',
width: ${uni.upx2px(750)}px
,
height: '300px'
});
const pages = getCurrentPages();
const page = pages[pages.length - 1];
const currentWebview = page.$getAppWebview();
currentWebview.append(view);
0 个回复