1
此流星服務器代碼無法使用cherrio對象$提取文本「789」,如docs所示。提取帶有cherrio的DOM元素
$('td[headers=x]').each(function() {
console.log($(this).next().html().trim()); //=> 456
console.log($(this).next('td[headers="y"]').html().trim()); //<-- fail
});
<td headers="x" class="bodyTextSmall">
123
</td>
<td headers="xx" class="bodyTextSmall">
456
</td>
<td headers="y" class="bodyTextSmall">
789
</td>
任何想法,爲什麼?謝謝
請參閱編輯之前我張貼的問題,嘗試了很多次之後。 –