puppeteer/assets/js/fc8ff17e.8f4f58af.js

1 line
6.4 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[12335],{3905:function(e,t,n){n.d(t,{Zo:function(){return c},kt:function(){return d}});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},p=Object.keys(e);for(r=0;r<p.length;r++)n=p[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(r=0;r<p.length;r++)n=p[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var l=r.createContext({}),i=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},c=function(e){var t=i(e.components);return r.createElement(l.Provider,{value:t},e.children)},s={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,p=e.originalType,l=e.parentName,c=u(e,["components","mdxType","originalType","parentName"]),m=i(n),d=a,g=m["".concat(l,".").concat(d)]||m[d]||s[d]||p;return n?r.createElement(g,o(o({ref:t},c),{},{components:n})):r.createElement(g,o({ref:t},c))}));function d(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var p=n.length,o=new Array(p);o[0]=m;var u={};for(var l in t)hasOwnProperty.call(t,l)&&(u[l]=t[l]);u.originalType=e,u.mdxType="string"==typeof e?e:a,o[1]=u;for(var i=2;i<p;i++)o[i]=n[i];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},37409:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return u},contentTitle:function(){return l},metadata:function(){return i},toc:function(){return c},default:function(){return m}});var r=n(87462),a=n(63366),p=(n(67294),n(3905)),o=["components"],u={},l=void 0,i={unversionedId:"puppeteer.page.evaluateonnewdocument",id:"puppeteer.page.evaluateonnewdocument",isDocsHomePage:!1,title:"puppeteer.page.evaluateonnewdocument",description:"Home &gt; puppeteer &gt; Page &gt; evaluateOnNewDocument",source:"@site/docs/puppeteer.page.evaluateonnewdocument.md",sourceDirName:".",slug:"/puppeteer.page.evaluateonnewdocument",permalink:"/puppeteer/docs/next/puppeteer.page.evaluateonnewdocument",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/docs/puppeteer.page.evaluateonnewdocument.md",version:"current",frontMatter:{},sidebar:"docs",previous:{title:"puppeteer.page.evaluatehandle",permalink:"/puppeteer/docs/next/puppeteer.page.evaluatehandle"},next:{title:"puppeteer.page.exposefunction",permalink:"/puppeteer/docs/next/puppeteer.page.exposefunction"}},c=[{value:"Page.evaluateOnNewDocument() method",id:"pageevaluateonnewdocument-method",children:[]},{value:"Parameters",id:"parameters",children:[]},{value:"Example",id:"example",children:[]}],s={toc:c};function m(e){var t=e.components,n=(0,a.Z)(e,o);return(0,p.kt)("wrapper",(0,r.Z)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,p.kt)("p",null,(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/index"},"Home")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer"},"puppeteer")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer.page"},"Page")," ",">"," ",(0,p.kt)("a",{parentName:"p",href:"/puppeteer/docs/next/puppeteer.page.evaluateonnewdocument"},"evaluateOnNewDocument")),(0,p.kt)("h2",{id:"pageevaluateonnewdocument-method"},