C语言的后台没玩过。。。给不了你例子了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. xmlns="http://www. http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <script type="text/javascript" src="http://ajax. type="text/javascript"> function GetData(){ $.ajax({ type:"POST", url:'cmd.asp?t' + Math.random(), dataType:"html", success:function(result){ $("#time").html(result); setTimeout("GetData()", 1000); } }); }; $(function(){ GetData(); }) </script> </head> <body> <div id="time"></div> </body> </html>cmd.asp
<%=Now()%>