php+ajax implements automatic page refresh time_PHP tutorial

WBOY
Release: 2016-07-21 14:52:02
Original
1133 people have browsed it

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(...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!