同じ ID を使用して複数の iframe を更新するにはどうすればよいですか。コードサンプル:
<iframe id="x123"></iframe>
<iframe id="x123"></iframe>
<iframe id="x123"></iframe>
私はテストします
document.getElementById('x123').contentWindow.location.reload();
また
parent.document.getElementById('x123').contentWindow.location.reload();
最初のものはちょうど他のもので、更新されません。
ありがとう :)