Jos*_*iah 13 javascript lua
在Lua中,是否有相当于Javascript的apply()函数?
ctc*_*rry 13
尝试使用()和unpack
()
unpack
function sayhello(name, message) print("hello " .. name .. ". " .. message) end func1 = sayhello args1 = {"test", "how are you"} func1(unpack(args1))
归档时间:
13 年,7 月 前
查看次数:
905 次
最近记录: