xpcall. pcall比pcall多接收一个参数,第二个参数接收一个错误处理函数。 local function fun() error(111) return 'i am ret' end local function errorHandler(err) ...
確定! 回上一頁