摘要: function getData(selector) { return $(selector || 'table').map((x, y) => group(Array.from($(y).find('td')), $(y).find('tr:has(td):first td').length, c 阅读全文
posted @ 2020-06-03 12:07 zwsu 阅读(659) 评论(0) 推荐(0) 编辑
摘要: function group(arr, step) { return arr.reduce((x, y) => { return Array.isArray(x) ? (x[x.length - 1].push(y) == step ? [...x, []] : x) : [[x, y]]; }) 阅读全文
posted @ 2020-06-03 11:22 zwsu 阅读(2295) 评论(0) 推荐(0) 编辑