Home  >  Article  >  Backend Development  >  php+ajax implements automatic page refresh time_PHP tutorial

php+ajax implements automatic page refresh time_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 14:52:021161browse

index.php

 view plaincopy to clipboardprint?
  
 
 
  
  
  
  
  

Ajax动态显示时间

  
click="start()" />  

当前时间:

  
  
 







Ajax动态显示时间


click="start()" />

当前时间:



getTime.php


view plaincopy to clipboardprint?
header("cache-control:no-cache,must-revalidate");  
header("Content-Type:text/html;charset=gb2312");  
$showtime = date("北京时间Y年m月d日H:i:s");  
echo $showtime;  
?> 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/371699.htmlTechArticleindex.php view plaincopy to clipboardprint? mce:script type=text/javas cript!-- var xmlHttp; function createXMLHttpRequest(){ if(window.ActiveXObject){ xmlHttp = new ActiveXObject(...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn