类型 函数 库 (globals) 返回值 (多种) 修订版 2024.3703 版本 关键词 rawget, rawset, 表 另请参阅 rawset()
获取 table[index]
的真实值,而不会调用任何元方法。table
必须为 表;index
可以为任何 数字 或 字符串。
rawget( table, index )
表。 任何表。
local t = { sample = "example value", another = 12345 } print( rawget( t, "sample" ) ) -- OUTPUT: "example value"