js前台页面组装table内容,传递到数据后台

1、前台通过js读取table除第一行(标题栏)以外的数据,组装成json字符传

2、通过ajax传递给后台

3、后台通过json工具包将json字符串解析成List<Map>

前台代码


<table id="table" >
	            <thead>
	            <tr class="backgroundF5F5F5">
	            	<th>title1</th>
	                <th>title2</th>
	                <th>title3</th>
	                <th>title点</th>
	                <th>title名</th>
	                <th>title时间</th>
	            </tr>
	            </thead>
				 <tr class="backgroundF5F5F5">
	            	<td>info1</td>
	                <td>info2</td>
	                <td>info3</td>
	                <td>info点</td>
	                <td>info名</td>
	                <td>info时间</td>
	            </tr>
	            
</table&g

猜你喜欢

转载自blog.csdn.net/runrun117/article/details/105575780