do {…} while(false)

前端 未结 25 2455
小鲜肉
小鲜肉 2020-11-28 03:29

I was looking at some code by an individual and noticed he seems to have a pattern in his functions:

 function()
{
 

        
25条回答
  •  春和景丽
    2020-11-28 04:10

    I think this is done to use break or continue statements. Some kind of "goto" code logic.

提交回复
热议问题