page.setJavaScriptEnabled(true);
eg:
const puppeteer = require('puppeteer');
(async ()=> {
const browser = await puppeteer.launch({ headless: false });
const page = await browser.newPage();
await page.setJavaScriptEnabled(true);
await page.goto( 'https://nsw2u.com/page/2' );
})();
评论
发表评论