Page.emulateTimezone() 方法
签名
class Page {
abstract emulateTimezone(timezoneId?: string): Promise<void>;
}
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
timezoneId |
string |
(可选) 更改页面的时区。有关受支持的时区 ID 列表,请参阅 ICU 的 metaZones.txt。传入 |
返回值:
Promise<void>
class Page {
abstract emulateTimezone(timezoneId?: string): Promise<void>;
}
|
参数 |
类型 |
说明 |
|---|---|---|
|
timezoneId |
string |
(可选) 更改页面的时区。有关受支持的时区 ID 列表,请参阅 ICU 的 metaZones.txt。传入 |
返回值:
Promise<void>