local thisismytable = { non = sequitur } thisismytable.whatismytable = thisismytable
任何帮助,将不胜感激.我不想重新创建预先存在的功能.
如果你能够站在这两个表达式之间的区别这个主题:whatismytable()而不是thisismytable.whatismytable,你可以这样做:
local thisismytable = { non = sequitur,whatismytable = function (self) return self end }
测试:
print(thisismytable) print(thisismytable:whatismytable())
更多用法:
print(thisismytable:whatismytable().non)