如何簡單的幹掉if else

直接上代碼,熟以至用:設計模式 //原始代碼不少if else public int selectByPrimaryKey(int i) { if(i==1){ return 1; }else if(i==3){ return 3; }else if(i==4){ retur
相關文章
相關標籤/搜索