<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script type="text/javascript" src="./jquery.min.js"></script>
<style>
table {
margin: auto;
}
.bottm {
width: 70px;
height: 30px;
background-color: #447fec;
color: #fff;
text-align: center;
line-height: 30px;
margin: auto;
}
</style>
</head>
<body>
<table>
<tr>
<td class="one1">
<input type="text">
</td>
<td class="one2">
<input type="text">
</td>
<td class="one3">
<input type="text">
</td>
</tr><tr>
<td class="one1">
<input type="text">
</td>
<td class="one2">
<input type="text">
</td>
<td class="one3">
<input type="text">
</td>
</tr><tr>
<td class="one1">
<input type="text">
</td>
<td class="one2">
<input type="text">
</td>
<td class="one3">
<input type="text">
</td>
</tr>
</table>
<div class="bottm">提交</div>
<script>
$(function () {
$('.bottm').on('click',function () {
$('table tr').each(function(index){//遍历所有tr元素
var data = [
$(this).find('td').eq().find('input').val(),
$(this).find('td').eq().find('input').val(),
$(this).find('td').eq().find('input').val(),
];
console.log(data);
})
}); }) </script>
</body>
</html>

最新文章

  1. 黑马程序员——C语言基础 char字符 数组
  2. 招聘高级.Net工程师
  3. CF 84D Doctor(二分)
  4. Cuckoo for Hashing_双哈希表
  5. php 递归创建目录、递归删除非空目录、迭代创建目录
  6. avalon---qunar ued
  7. IDEA 常见文件类型的图标介绍
  8. 主题:PageRank解释
  9. Emit
  10. url语法
  11. HTML中部分标签的嵌套问题
  12. hdu 3433 A Task Process 二分+dp
  13. property干嘛的
  14. JavaEESSM框架配置文件
  15. RabbitMQ的六种工作模式
  16. Docker(四)Dockerfile入门
  17. github总结(1)--怎样创建一个新的仓库
  18. C#微信公众号开发--网页授权(oauth2.0)获取用户基本信息一
  19. ORA-01654 : 表空间不足
  20. noip做题记录+挑战一句话题解?

热门文章

  1. deep Learning 之入门一 (ps:知乎上看到的大佬写的非常好,所以自己记录下)
  2. LG3391 【模板】文艺平衡树(Splay)
  3. 3145 code[VS]汉诺塔游戏--递归
  4. oracle系统表的查询
  5. Linux环境安装git
  6. Linux 多路复用 select / poll
  7. ubuntu14.04安装python3.7.1
  8. ClassLoader热加载的简单实现
  9. php排序集合
  10. java代码初学者适用,输入学生成绩,符合要求的过~~~~注意数据范围