在jQuery中,要获取`
获取整个`
如果你想要获取`
```javascript
var trContent = $('yourTrId').html();
console.log(trContent);
```
获取`
如果你只想要获取`
```javascript
var trText = $('yourTrId').text();
console.log(trText);
```
获取`
如果你想要获取`
```javascript
// 使用.find()方法
var tdValue = $('yourTrId').find('td').eq(index).text(); // index是从0开始的索引
// 直接使用选择器
var tdValue = $('yourTrId td').eq(index).text(); // index是从0开始的索引
```
获取`
如果你想要获取`
```javascript
// 使用.find()方法
var tdValues = $('yourTrId').find('td').map(function() {
return $(this).text();
-- 展开阅读全文 --