if语句

js 拒绝 if ... else

先看常规的条件语句的写法: function getInitData(columnType){ if(columnType == "baiduZhidaoNum"){ return {searchText:"", href:""}; }else if(columnType == "weBo"){