springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2022-10-19 13:06:16
133
我有一个表,我在其中获取所有行的第1列td和第9列tds的值
$("table tr").each(function() {
return ($(this).find("td").eq(0).text() + " " + $(this).find("td").eq(8).text())
}).join("#")
我需要得到数组形式的结果
AS
$("table tr").each(function() {
return ($(this).find("td").eq(0).text() + " " + $(this).find("td").eq(8).text())
}).join("#")
预期结果为
$("table tr").each(function() {
return ($(this).find("td").eq(0).text() + " " + $(this).find("td").eq(8).text())
}).join("#")
如何修改迭代以返回数组。然后,我可以使用所需的任何字符进行连接。
顺晟科技:
您可以这样做:
$("table tr").each(function() {
return ($(this).find("td").eq(0).text() + " " + $(this).find("td").eq(8).text())
}).join("#")
不会返回所需的重定向结果,而是返回表中的所有
演示
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11