云起工作室 15711107967
异常处理
2024-07-03 11:06:52

panic 抛出异常


recover() 接受异常


defer func(){

err:=recover()

if err!=nil{

处理异常

}

}


panic("异常提示")