Page.emulateTimezone() 方法
簽名
class Page {
abstract emulateTimezone(timezoneId?: string): Promise<void>;
}
參數
參數 | 類型 | 描述 |
---|---|---|
timezoneId | 字串 | (可選) 變更頁面的時區。請參閱 ICU 的 metaZones.txt 以取得支援的時區 ID 列表。傳遞 |
返回
Promise<void>
class Page {
abstract emulateTimezone(timezoneId?: string): Promise<void>;
}
參數 | 類型 | 描述 |
---|---|---|
timezoneId | 字串 | (可選) 變更頁面的時區。請參閱 ICU 的 metaZones.txt 以取得支援的時區 ID 列表。傳遞 |
返回
Promise<void>