24 个 Javascript 代码优化技巧
摘要:1. if 多条件判断 在if多条件判断的情况下建议使用includes方法。 const day = "星期二"; if (day "星期二" || day "星期三" || day "星期四") { console.log(day); } // 优化 if (["星期二", "星期三", "星期
阅读全文
posted @ 2021-06-28 17:02
闻达有先后,术业有专攻,努力,加油ing!!!!
posted @ 2021-06-28 17:02
posted @ 2021-06-28 16:25