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

php+ajax implements automatic page refresh time_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-21 14:52:02
Original
1226 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(...
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
Latest Issues
angular.js - Angularjs $http ajax issue?
From 1970-01-01 08:00:00
0
0
0
PHP does not recognize content sent by Ajax
From 1970-01-01 08:00:00
0
0
0
Opencart 2: Call php files using Ajax
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template