Home > php教程 > php手册 > body text

XMLHTTP刷新远程数据的PHP JS代码演示(支持中文)

WBOY
Release: 2016-06-13 10:07:02
Original
811 people have browsed it

xmlhttp,无刷新声,无漏斗标记,效果最好,不过就是对浏览器要求高,好在我的应用只是一个附属的功能,因此不需要用户必须开启这个控件……最后决定采用这个方案

我写了一个测试程序,代码如下,供大家参考:
==test2.php=================

session_start();
echo "现在时间是:".date("Y-m-d H:i:s ",time());
?>

==eg4.php==================






数据载入中


这样,当你运行eg4.php时,页面会出现当前时间,每2秒刷新一次,看不到进度条,也没有小漏斗标记了
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template