Home > front end >  Within the iframe label, according to the third party web page, how to make some changes display con
Within the iframe label, according to the third party web page, how to make some changes display con

Time:02-09

Now at the front desk is the vue, idea is to set the iframe url is a third party web site, through the background processing, need to replace some of the display information on the web, use method is saved to the local HTML, now in editing HTML things to happen, but the editor has many label JS can't display properly, now want to ask, is there any way can not save to a local, I direct similar browser background DIV block to change him, I'd like to achieve the display effect?

CodePudding user response:

Whether the callback function returns the result is not what you want?
"I like browser directly change background he DIV block, I wanted to achieve the display effect?"
What do you mean? Didn't understand,
WeChat scan code is not saved to the local, ha ha

CodePudding user response:

Is to want to modify it in their vue project third-party DOM of the page?
Directly using js cannot achieve, the cross-domain problem can't solve, but feeling can use puppeteer,
The front-end call interface parameters (the three of the page) - & gt; Get to the page content puppeteer, and modify the content - & gt; Return the content of the modified and rendered at the front
  • Related