跳至主要內容
版本: 23.11.1

Page.emulateTimezone() 方法

簽名

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

參數

參數

類型

描述

timezoneId

字串

(可選) 變更頁面的時區。請參閱 ICU 的 metaZones.txt 以取得支援的時區 ID 列表。傳遞 null 會停用時區模擬。

返回

Promise<void>