我想对一个看起来像这样的页面实现一个 jquery get 请求:
<tr class='tr'>
<td class='example1'>
<span> Information I have <span>
<div> Something <div>
</td>
<td class='example2'>
<span> Information I want to get <span>
<span> something else </span>
</td>
</tr>
在页面中,有多个“TR”,我想要的是用“我拥有的信息”到达那个并获得“我想要获取的信息”。
我想使用一个ajax请求:
setInterval(function() {
$.ajax({
type: "GET",
url: "url_of_the_page",
success: test
});
}, 5000);
function test(html) {
$(html).find("Information I have").each(function()
但我不知道如何获得信息。