ctc*_*rry 13
尝试使用()和unpack
function sayhello(name, message)
print("hello " .. name .. ". " .. message)
end
func1 = sayhello
args1 = {"test", "how are you"}
func1(unpack(args1))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
905 次 |
| 最近记录: |