获取数据显示为未定义

时间:2021-07-10 19:10:47

标签: reactjs django

df <- structure(list(var = c("sa1_fr_19", "sa1_fr_19", "su3_sa2_18", 
"su3_sa2_18"), colour = c("B", "W", "B", "W"), no = c(10L, 12L, 
8L, 6L), Mcolour = c(66L, 85L, 70L, 24L), Ncolour = c(3L, 6L, 
9L, 1L)), class = "data.frame", row.names = c(NA, -4L))
<块引用>

当我 console.log(data) 它记录:
对象 { id: 1, name: "book1", author: "Author1", passcode: "123" }, 对象 { id: 2, name: "book2", author: "Author2", passcode: "321" },但由于某种原因 data.name 未定义......我该如何解决这个问题?

0 个答案:

没有答案