摘要: // if语句简单使用 if和else if相比,else if效率更高,因为else if中前面判断过的条件后面不需要再重复判断,而全部使用if则需要重复判断 var one=5; if(one>2){ one+=1; } if(one-=6){ one=3 } //one为0,因为one-=6会 阅读全文
posted @ 2020-03-13 17:56 Alex-Song 阅读(1308) 评论(0) 推荐(0) 编辑