日期:2014-05-17 浏览次数:20712 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <script laguage="javascript"> window.onload=function init(){ // queryInfo2(); strfun(++n); } setTimeout("strfun(++n)",1000); setTimeout("strfun(++n)",2000); var str = "str"; var n = 0; function queryInfo2(){ strfun(++n); strfun(++n); //alert(n); strfun(++n); //alert(n); } var nnn = 0; function strfun(n){ nnn++; str += " " + n; shipmessages.innerHTML = str; } </script> </HEAD> <BODY> <div id="shipmessages"></div> </BODY> </HTML> 试试