方法1:如下程序,当页面完全加载后执行opentheindexpage()方法
telecommunications data collection systemfunction opentheindexpage() {
openmyuriwithcid(true, 'root', 'idx', "iframe/dispatch.jsp?url=tdc/zhk/impctrlobjinf/index/index.jsp", '首页',
'top.tagmenu', 'top.maintop', true,
'system/accesspaths.do?currentmodulecode=idx',
'mainmenu', true);
};
if(document.readystate=="complete"){
opentheindexpage();
}
方法2:可以是以下几种,但是效果不如方法1.
第二种只能写入一个函数,而且无法给变量,其中最好用的是最后一种,可以独立写出来,怎么写都行。
方法3:
xxx()为你要执行的函数方法4:在script标记里加defer
即
或者
在整个页面加载完后运行脚本。(没有效果)