悉野小楼

导航

2023年11月28日

lua self使用例子

摘要: local funcs = {} function funcs:callMe() local tt = self.name --值为hello print(tt) end f = funcs["callMe"] -- 调用方法1: f({name = “hello"}) -- 调用方法2: loca 阅读全文

posted @ 2023-11-28 15:51 悉野 阅读(29) 评论(0) 推荐(0) 编辑