博客搬迁,给你带来的不便敬请谅解!
http://www.suanliutudousi.com/2017/09/24/js%E5%85%B3%E4%BA%8Eifelse%E4%B8%AD%E7%9A%84%E5%88%A4%E5%AE%9A%E6%9D%A1%E4%BB%B6%E7%9A%84%E8%AE%A4%E8%AF%86%EF%BC%8C%E5%90%84%E7%A7%8D%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2/