lua 表索引[]和.的使用顺序对结果的影响 测试代码:a = {a = {a=1,b=2,},b = {a = 3,b = 4,}}b = {a = "a",b = "b",}DBG(tostring(a.b["a"])) --> 3DBG(tostring(a[b["a"]]["a"])) --> 1DBG(tostring(a.b.a)) --> lua入门 2023-09-01 54 点赞 0 评论 81 浏览