1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-03 23:52:51 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

搜索功能前端页面

This commit is contained in:
2022-03-15 19:26:47 +08:00
parent c2079f9064
commit 328d9f0dd2
5 changed files with 78 additions and 14 deletions

View File

@@ -5,8 +5,10 @@ function renderTable({
}) {
var tbodyHtml = "";
var theadHtml = "";
if (!data) return null;
if (!data.length) return null;
if (Array.isArray(data)) {
if (Array.isArray(data[0])) {
// 是数组
// 如果元素是数组 ["a", "b", "c"],则数组的第一项作为表头