📜  puppeter 循环 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:25.644000             🧑  作者: Mango

代码示例1
const urls = [...]

for (let i = 0; i < urls.length; i++) {
    const url = urls[i];
    await page.goto(`${url}`);
    await page.waitForNavigation({ waitUntil: 'networkidle2' });
}