Skip to main content

别名

  • debug.getmetatable

参数

any
必填
Value whose metatable is returned.

返回值

table | nil
Target metatable when present; otherwise nil.

示例

Return the metatable currently attached to a value.