use window.onload, concatenate your script together and put it between window.onload, for example,s = "var test=new myObject();\ntest.show();\n";
//......
s += "var test2=new myObject();\ntest2.show();\n";RegisterStartupScript("Startup", "<script>function window.onload(){" + s + "}</" + "script>");
//......
s += "var test2=new myObject();\ntest2.show();\n";RegisterStartupScript("Startup", "<script>function window.onload(){" + s + "}</" + "script>");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货