Page.emulateTimezone() 方法
🌐 Page.emulateTimezone() method
语法
🌐 Signature
class Page {
abstract emulateTimezone(timezoneId?: string): Promise<void>;
}
参数
🌐 Parameters
|
范围 🌐 Parameter |
类型 🌐 Type |
描述 🌐 Description |
|---|---|---|
|
timezoneId |
string |
(可选) 更改页面的时区。请参阅 ICU 的 metaZones.txt 以获取支持的时区 ID 列表。传入 🌐 (Optional) Changes the timezone of the page. See ICU’s metaZones.txt for a list of supported timezone IDs. Passing |
返回:
Promise<void>