js里面关于大于等于且不小于的用法,“或”截断

if (0 <= grade < 20) 错误
if (0 <= grade && grade < 20) 正确

posted @ 2023-08-09 15:09  yangzp1024  阅读(30)  评论(0)    收藏  举报