Home > SYS_IFrame > closeIFrame
SYS_IFrame.closeIFrame() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
关闭内联框架窗口
Signature
typescript
closeIFrame(id?: string): Promise<boolean>;
1
Parameters
Parameter | Type | Description |
---|---|---|
id | string | (Optional) 内联框架窗口 ID,如若传入 |
Returns
Promise<boolean>
操作是否成功
Remarks
关闭当前扩展打开的所有内联框架窗口;
注意:本接口仅扩展有效,在独立脚本环境内调用将始终 throw Error