lua table 构造 支持这样吗
b={}a={table={name="AAA",value="BBB"}}table.insert(b,a)print(b[1].table.name)我提示错误att...
b = {}
a = {
table = {name = "AAA",value = "BBB" }
}
table.insert(b,a)
print(b[1].table.name)
我提示错误 attempt to index field 'table' (a nil value) 展开
a = {
table = {name = "AAA",value = "BBB" }
}
table.insert(b,a)
print(b[1].table.name)
我提示错误 attempt to index field 'table' (a nil value) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询