我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何清除DIV并在while循环中添加新内容[关闭]

I need to clear the <div> and insert new content I get from the database after each while loop in php. Can someone help me out with this problem? Also I need to sleep in the loop for about 10 sec.

I am using PHP for the while loop.

The general flow is like this -

while() {
  read from database;
  sleep;
  clear div;      ///I nead help here;
  Add content to div ///I need help here
}

Thanks

to clear - $("div").empty();

to fill - $("div").html(your_ajax_response);

近期文章

  • 连自己的热点能正常上网,连校园网能连上但是不能上网
  • jetty服务接收http请求eof报错问题
  • leaflet加载百度地图并自定义样式
  • mybatis连接数据库后控制台输出的SQL语句参数中文乱码
  • C#winform初始化nancy抛异常
  • 销售发票的COST ,TAX AMOUNT栏为0 正常吗?
  • 小米mini路由器刷ssh红灯如何解决?
  • 求解析!为什么要这样做
  • 前端修改onlyoffice边框线
  • 检查和更改数组中的值
  • weblogic创建连接池The Network Adapter could not establish the connection
  • 关于队列定义的一个问题
  • S32DS安装遇到的问题
  • 在构建oss模糊测试时显示没有icu包如何解决
  • python pyinstaller打包运行错误的问题
  • 想安装rtools,我把rtools也安装在Program Files里了啊
  • 2020数模B题物资剩余量有问题
  • 控制面板卸载无权限!!
  • 混淆矩阵怎样显示整数形式呢?
  • 帮帮我如何让两个盒子合并

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华