<div style="width:100%" align="center">
<iframe src="/web/commonController.do?listTurn&turn=system/document/filesList&unid=" align="middle" id="autoList" style="width:100%;height:300px;" frameborder="0" align="middle">
</iframe>
</div>
js操作iframe:
var iframe = document.getElementById("autoList");
设置iframe的属性:
$(iframe).attr("src","/web/commonController.do?listTurn&turn=system/document/filesList&unid="+docUnid);
转载于:https://my.oschina.net/u/2552902/blog/543896