webContents - webContents.fromId(id)

概述

返回 WebContents | undefined,即具有指定 ID 的 WebContents 实例,不存在则返回 undefined。

基本信息

属性
模块 webContents
类型 Method
鸿蒙支持 支持