使用 jQuery 查询从 PHP 的 file_get_contents 获取的 html
如果我有
$html = file_get_contents('http://www.some-url.com/index.php');
如何使用 jQuery 查询 html?
If I have
$html = file_get_contents('http://www.some-url.com/index.php');
how do I query the html using jQuery?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要将 HTML 输出到页面上,然后在页面加载后使用 jQuery 进行查询。
You will need to output the HTML onto the page then use jQuery to query it once the page is loaded.