Output a "1", for example, in the case of not refresh the page, such as this one will become 2, then 3,,,,,,,,,
CodePudding user response:
Ajax...CodePudding user response:
javascriptCodePudding user response:
By js DOM implementation operation, if there are interaction and background, using ajax or hidden iframeCodePudding user response:
Roughly as follows, can according to demand to modify js:
<script language="javascript" type="text/javascript" & gt;
//regularly update time
The function refresh ()
{
Var div=document. All (" divTime ");
Var strTime=Default1. GetAllOnLineUser (). The value;
If (strTime!="")
Div. InnerHTML=strTime;
//1 seconds refresh
Window. The setTimeout (refresh, 1000);
}
</script>