js简化过多if判断 https://zeyu7.com/zhe-xie-you-hua-ji-qiao-ke-yi-bi-mian-wo-men-zai-js-zhong-guo-duo-de-shi-yong-if-yu-ju/