maple
maple
  • 发布:2021-04-10 03:48
  • 更新:2021-04-11 08:39
  • 阅读:445

nvue页面没办法获取子webview

分类:nvue

nvue页面没办法获取子webview

var pages = getCurrentPages();

var page = pages[pages.length - 1];

var currentWebview = page.$getAppWebview();

console.log(currentWebview.children()) //[] nvue页面其实有个webview,但是用这个方法得到的是[]空数组,求解

2021-04-10 03:48 负责人:无 分享
已邀请:
MonikaCeng

MonikaCeng

我记得官方好像说过无法获取

  • maple (作者)

    获取不到? 那做类似浏览器的功能不能够用nvue了? 有官方的人回答下吗?

    2021-04-11 02:15

  • MonikaCeng

    回复 maple: 用plus.webview.create

    2021-04-11 23:19

DCMarvel

DCMarvel

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