function test(param)-- bodyprint ('enter into test....')print (param)-- 这里会报错print (a + b)
end--执行并传参
local success, err = pcall(test, 'abcd')
print (success)
if not success thenprint (err)
end
function test(param)-- bodyprint ('enter into test....')print (param)-- 这里会报错print (a + b)
end--执行并传参
local success, err = pcall(test, 'abcd')
print (success)
if not success thenprint (err)
end