script let iframeObj = $iframe3; iframeObjaddEventListenerload = iframeObjcontentWindowpostMessage id204850 name玉骨遥-第11集 group nexthttpsvqqco
要在现在的iframe中的iframe标签中正常传递原来的参数,你需要修改代码中的索引值,将索引值从3更改为4,以获取第二个iframe元素。然后可以将参数传递给这个新的iframe元素,如下所示:
<script>
let iframeObj = $('iframe')[4];
iframeObj.addEventListener('load', () => {
iframeObj.contentWindow.postMessage({
"id":"204850",
"name":"玉骨遥-第11集",
"group":"",
"next":"https://v.qq.com/x/cover/mzc002003rb9ntl/p0046ceyj30.html",
"sid":"1",
"nid":"11",
"api":"https://www.suying.lol/index.php",
"dmId":"https://v.qq.com/x/cover/mzc002003rb9ntl/k0046duyb9c.html"
}, "*");
})
</script>
请确保将索引值更改为正确的值,以便正确选择要传递参数的iframe元素
原文地址: https://www.cveoy.top/t/topic/hUwt 著作权归作者所有。请勿转载和采集!