You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -218,6 +221,8 @@ The browser instance is a headless browser without a UI shell. What he does is t
218
221
219
222
It is an instance object of [Page](https://pptr.dev/api/puppeteer.page). The instance can also perform interactive operations such as events. For specific usage, please refer to [page](https://pptr.dev /api/puppeteer. page).
220
223
224
+
The browser instance will retain a reference to the page instance. If it is no longer used in the future, the page instance needs to be closed by itself, otherwise it will cause a memory leak.
**Using crawlPage in polling Note:** Calling page.close() is to prevent the browser instance from retaining references to the page instance. If it is no longer used in the future, you need to close the page instance yourself, otherwise it will cause memory leaks.
336
+
329
337
Callback function parameters:
330
338
331
339
- The count attribute records the current number of polling operations.
@@ -218,6 +221,8 @@ The browser instance is a headless browser without a UI shell. What he does is t
218
221
219
222
It is an instance object of [Page](https://pptr.dev/api/puppeteer.page). The instance can also perform interactive operations such as events. For specific usage, please refer to [page](https://pptr.dev /api/puppeteer. page).
220
223
224
+
The browser instance will retain a reference to the page instance. If it is no longer used in the future, the page instance needs to be closed by itself, otherwise it will cause a memory leak.
**Using crawlPage in polling Note:** Calling page.close() is to prevent the browser instance from retaining references to the page instance. If it is no longer used in the future, you need to close the page instance yourself, otherwise it will cause memory leaks.
336
+
329
337
Callback function parameters:
330
338
331
339
- The count attribute records the current number of polling operations.
0 commit comments