💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 1.html ``` <html> <head> <title>111</title> </head> <body> <script> function fun(){ let data = document.getElementById("text").value; parent.window.fun(data); } </script> <input id="text" placeholder="请输入内容"/> <button onclick="fun()">submit</button> </body> </html> ``` # 2.html ``` <html> <head> <title>222</title> </head> <body> <script> function fun(data){ document.getElementById("text").value = data; } </script> <input id="text" placeholder="接收的内容"/> </body> </html> ``` # index.html ``` <html> <head> <title>首页</title> <meta charset="utf-8"/> </head> <body> <script> function fun(data){ window.frames[1].fun(data); } </script> <iframe id="c1" src="./1.html"></iframe> <iframe id="c2" src="./2.html"></iframe> </body> </html> ```