在我的lua项目中,我得到了以下函数: function module.Cp1251ToUtf8(s)
for i = 1, s and s:len() or 0 do --the problem occurs here if b < 128 then有时它工作得很好,但有时我会得到以下错误:attempt to call method
我正在创建一个lua脚本,它应该在TI-Nspire计算器上运行。问题是,在运行我的脚本时,当调用button:activate()方法时,我得到了错误Attempt to index local 'self' (a nil value)。button:init()end
self.selected = true我像这样调用激活函数local action =