页面中需要动态的改变iframe的地址,方法有:
1. window.frames["chartFrame"].document.location = "<%=basePath %>/rest/chart/${id}-" + newValue;
2. document.getElementById("chartFrame").src = "<%=basePath %>/rest/chart/${id}-" + newValue;
时间: 2024-10-15 10:55:32
页面中需要动态的改变iframe的地址,方法有:
1. window.frames["chartFrame"].document.location = "<%=basePath %>/rest/chart/${id}-" + newValue;
2. document.getElementById("chartFrame").src = "<%=basePath %>/rest/chart/${id}-" + newValue;