Skip to main content
Version: 24.38.0

Page.emulateTimezone() 方法

🌐 Page.emulateTimezone() method

语法

🌐 Signature

class Page {
abstract emulateTimezone(timezoneId?: string): Promise<void>;
}

参数

🌐 Parameters

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

timezoneId

string

(可选) 更改页面的时区。请参阅 ICU 的 metaZones.txt 以获取支持的时区 ID 列表。传入 null 将禁用时区模拟。

🌐 (Optional) Changes the timezone of the page. See ICU’s metaZones.txt for a list of supported timezone IDs. Passing null disables timezone emulation.

返回:

Promise<void>