Update class-consolemessage.md (#22261)

This commit is contained in:
任跃兵 2023-04-08 04:51:46 +08:00 committed by GitHub
parent eed5b4c83b
commit 2b1a121133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ await page.evaluate(() => {
const msg = await msgPromise;
// Deconstruct console log arguments
await msg.args[0].jsonValue() // hello
await msg.args[1].jsonValue() // 42
await msg.args()[0].jsonValue() // hello
await msg.args()[1].jsonValue() // 42
```
```java

View File

@ -16146,8 +16146,8 @@ export interface BrowserServer {
* const msg = await msgPromise;
*
* // Deconstruct console log arguments
* await msg.args[0].jsonValue() // hello
* await msg.args[1].jsonValue() // 42
* await msg.args()[0].jsonValue() // hello
* await msg.args()[1].jsonValue() // 42
* ```
*
*/