标签:str 添加 last javascrip ast min java find title
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<script src="../javascript/jquery-1.11.1.min.js"></script>
<body>
<table height="70" width="700" border="1px">
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td></td>
</tr>
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td></td>
</tr>
</table>
<script>
var str=$();
$(‘table tr‘).each(function(i,q){
var item=$(q).find(‘td:last‘);
str=str.add(item);
});
str.append(‘<button>删除</button><button>修改</button>‘)
</script>
</body>
</html>
标签:str 添加 last javascrip ast min java find title
原文地址:http://www.cnblogs.com/zhuyupingit/p/7090361.html