BrowserContext.close() 方法 关闭此浏览器上下文及其所有关联的页面。 签名 class BrowserContext { abstract close(): Promise<void>; } 返回值: Promise<void> 备注 默认浏览器上下文无法被关闭。