dongxing2030 2013-02-17 14:39
浏览 58

php的include选项是否进行部分页面刷新?

I've started using PHP locally and notice that if I use include files within a main index.php file, the whole page does not refresh when I click a button/link that will include a new/updated include file. My question is, is php's include option like ajax and only does a partial page refresh? If so, am I better off using just plain php or should I stick with ajax?

  • 写回答

2条回答 默认 最新

  • doudi5291 2013-02-17 14:43
    关注

    PHP code is interpreted server-side so it doesn't use AJAX like client-side JavaScript. Clicking a link will request a new page, and PHP will interpret the requested files and return the output. You're likely not experiencing refresh times because you're working locally. If you take a look at the Network tab of Chrome Developer tools you'll see the refresh take place.

    评论

报告相同问题?

悬赏问题

  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀