Does PHP flush work with jQuerys ajax?

前端 未结 2 925
逝去的感伤
逝去的感伤 2020-12-21 15:46

I have created a page in which I use the PHP function flush(), to output data to the browser the second the data is echoed. I\'m also calling this page using jQuery\'s ajax

2条回答
  •  心在旅途
    2020-12-21 16:20

    jQuery needs to wait for the connection to close before it can insert the html onto the page -- it can't display it progressively (it wouldn't make any sense).

提交回复
热议问题