我有一个HTML页面,在其中以编程方式设置iframe的src。我该如何通过iframe src传递参数并在子HTML中获取它们?
以下是我的代码:
以下是我的代码:
<iframe id="myIframe" src="" height="250px" width="100%" scrolling="yes" frameborder="0"></iframe>
function myFunction(){
$('#myIframe').attr('src', "myIframeRequest.html");
}
?parameters
,然后在 iframe 中检查location.search
。 - Teemu