1
如果我这样做,我得到错误。我该怎么办?Lua功能范围
local function one()
local function two()
local function three()
callMe() -- got error here
end
end
end
local function callMe()
print ("can't call :(")
end
callMe()
据我所知,该代码是无效的Lua:在功能'one','two'和'three'需要'()'后他们。 –
对不起,我的疏忽。当我在这里编写示例代码时,我很着急,但这不是真正的代码。 – Devyn