跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

Disposable ​

Added in: v1.59

Disposable is returned from various methods to allow undoing the corresponding action. For example, page.add_init_script() returns a Disposable that can be used to remove the init script.

Methods ​

disposable.close() ​

Added in: v1.59

Removes the associated resource. For example, removes the init script installed via page.add_init_script() or browser_context.add_init_script().

基于 Apache 2.0 许可证发布。