创建新窗口,并加载指定网页页面
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
title | string | 是 | — | 窗口标题 |
standalone | string | 是 | false | 是否独立窗口, false=在主窗口内显示,适合云渲染。true=独立于主窗口,适合多显示器 |
position | string | 是 | 0.0, 0.0, 0.0 | 位置 |
size | string | 是 | 0.0, 0.0, 0.0 | 尺寸 |
url | string | 是 | https://www.bing.com | 网页地址 |
输出
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
id | number | 是 | 100 | 窗口id,用于关闭操作 |
调用
typescript
piclient.emit("window.createByWebPage",{
title: "",//窗口标题
standalone: "false", //是否独立窗口, false=在主窗口内显示,适合云渲染。true=独立于主窗口,适合多显示器
position: "0.0, 0.0, 0.0",//位置
size: "0.0, 0.0, 0.0",//尺寸
url: "https://www.bing.com",//网页地址
})