小编Ank*_*kit的帖子

Lua 函数 .. 可选表

如何在可选的 lua 函数中传递表。

例如

function test(options)
   local a = options.a
end
Run Code Online (Sandbox Code Playgroud)

这个功能应该同时工作

test(options)
Run Code Online (Sandbox Code Playgroud)

test()
Run Code Online (Sandbox Code Playgroud)

lua function

1
推荐指数
1
解决办法
49
查看次数

标签 统计

function ×1

lua ×1