Home > Backend Development > PHP Tutorial > 每个楼层下部评论-Ajax分页

每个楼层下部评论-Ajax分页

WBOY
Release: 2016-06-13 12:04:47
Original
885 people have browsed it

每个楼层下面评论------Ajax分页
就像百度贴吧一样,   需要对每个楼层下面的评论   . 结合Ajax技术进行分页......问题来了
利用ajax去请求数据时.   需要传过去当前楼层ID吧?    js 怎么传过去呢?

    

一楼评论内容

得到Ajax返回的数据后 又怎么改变div中的数据呢?,,,把每层展示评论的div 的 id 搞成 当前楼层ID? 
这样貌似略麻烦啊..
------解决方案--------------------
然后使用jquery attr('fid'); 读取
例如
 楼层
   
 评论列表
     

           

  •        

  •        

  •      

   


------解决方案--------------------
楼层和展示评论的div肯定是要有关联的  比如将div 的某些属性设置成楼层的id等
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