是不是通过这段代码从 index.htm 调用 sub.htm 的 test() ?
非常感谢。
索引.htm
<div dojoType="dijit.layout.ContentPane" id="subFrame" region="left" href="sub.htm">
<script type="dojo/connect" event="onLoad">
// this call test()
</script>
</div>
子.htm
<script type="text/javascript">
function test() {
alert("success");
}
</script>
<table>
<tr>
<td></td>
</tr>
</table>