Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以在 php 中加载页面,将其传递给 jQuery,提取数据然后将该数据发送回 php 脚本。
请参阅:如何在每个 div 中查找 <ul> 的数量
这是实验室实验工作。文件在我教授的个人网站上。
尝试使用 phpQuery 执行此操作,但似乎不可能。所以一种可能的方法就是我上面提到的。
在我看来,您所描述的过程中还有一个额外的步骤。除非出于某种原因您特别希望您的 PHP 加载实际文件并将其发送到您的 jQuery 脚本,否则您最好直接使用 jQuery 加载页面。
$.get()
$.post()