[英]javascript fetch command does not display the content on the html page
[英]Use fetch or axios to display html content of another page running the scripts
我想使用 fetch 或 axios 下载页面的 html 内容,这工作正常,但页面内的 javascript 代码不运行
这是我尝试过的
document.getElementById('test').innerHTML=
await (await fetch('url')).text()
我想要的类似于这个答案,但我想得到处理内部 javascript 的页面,而不是运行脚本。
我的目标是创建一个 boostrapEmail 模板,我可以使用 localstorage 发送参数并使其动态化
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.