Page.emulateLocale() 方法
签名
class Page {
abstract emulateLocale(locale?: string): Promise<void>;
}
参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
locale |
string |
(可选) 要在页面上模拟的区域设置。不传入区域设置将禁用区域设置模拟。 |
返回值:
Promise<void>
class Page {
abstract emulateLocale(locale?: string): Promise<void>;
}
|
参数 |
类型 |
说明 |
|---|---|---|
|
locale |
string |
(可选) 要在页面上模拟的区域设置。不传入区域设置将禁用区域设置模拟。 |
返回值:
Promise<void>