lua 异常 错误处理 pcall

lua 错误处理

匿名函数

if pcall(function () local s=object.data[1]['type'] end) then
		return object.data[1]['type']
		else
		return 0
	end

原文地址:https://www.cnblogs.com/freefei/p/7048801.html