Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Lua 中,是否有相当于 Javascript 的 apply() 函数?
尝试使用()和unpack
()
unpack
function sayhello(name, message) print("hello " .. name .. ". " .. message) end func1 = sayhello args1 = {"test", "how are you"} func1(unpack(args1))