attempt to index local ‘result‘ (a nil value)

lua中报错:attempt to index local ‘result’ (a nil value)
在lua中调用方法一定要用冒号“:”,不然会attempt to index local ‘result’ (a nil value)

你可能感兴趣的:(lua)