在lua / corona

时间:2016-01-08 20:57:56

标签: syntax lua corona

我正在研究电晕的推送通知,并且遇到了这个页面

https://docs.coronalabs.com/api/event/notification/type.html

我困惑的代码是顶部的部分

-- The launch arguments provide a notification event if this app was started when the user tapped on a notification
local launchArgs = ...

...是什么意思?

1 个答案:

答案 0 :(得分:1)

...是vararg表达式的语法,用于vararg函数。

在此示例中,...用于脚本的主体。该脚本可以视为vararg函数,因此...这里是脚本的参数。