Javascript: how to view the code of multiple if else

CSDN Q & A 2022-02-13 06:54:57 阅读数:194

javascript view code multiple

javascript : Excuse me, there are many if if else if else How to look at your code . Xiaobai looks dizzy
Is it from the first layer or how to look at the code

 if (){ ---------------------------------- first floor  if(){
---------------------------------- The second floor  if(){ ------------------------ The third level  }else{ } }else{ } } 



Take the answer :

First shrink each pair of parentheses from the inside out Then from outside to inside



Other answers 2:

From inside to outside

copyright:author[CSDN Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130654557343.html