关于缓存问题

WBOY
Release: 2016-06-23 13:56:50
Original
860 people have browsed it

客户端有张表  有个字段是修改时间字段    我发给服务端 跟服务器的时间字段相比     如果小于服务器的时间断的数据 就要发给客户端 如果相等或者大于就不用发给客户端  这个逻辑怎么写


回复讨论(解决方案)

$time = '2014-05-19 00:00:00';//取自数据库字段
if (strtotime($time)      //发送给客户端
}

$time = '2014-05-19 00:00:00';//取自数据库字段
if (strtotime($time)      //发送给客户端
}


可否这样改


$time = '2014-05-19 00:00:00';//取自数据库字段
if (strtotime($time)      //发送给客户端
}


可否这样改 这个我当然知道。。。。。。。。。。。 问题下面怎么写。。发给客户端。好难写



$time = '2014-05-19 00:00:00';//取自数据库字段
if (strtotime($time)      //发送给客户端
}


可否这样改 这个我当然知道。。。。。。。。。。。 问题下面怎么写。。发给客户端。好难写 我说需要的数据发给客户端  怎么把需要的数据发给客户端

通过js去请求服务端,服务端判断时间和当前时间比较,返回数据给客户端 jquery的ajax post get 看看文档

通过js去请求服务端,服务端判断时间和当前时间比较,返回数据给客户端 jquery的ajax post get 看看文档

我就是怎么把需要的数据拿出来我不懂。。 而且万一服务器改了 怎么通知客户端呢

B/S结构,没有什么服务器通知客户端这么一说。只有客户端去请求数据,服务器输出需要的数据。

Related labels:
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!