JS数字区间比较大小的写法

正确的写法是:

if (realValue >= 0 && realValue <= 5) {
        console.log('漏刻有时数据可视化');
    }

错误的写法:

if ( 0<= realValue <= 5) {
        console.log('漏刻有时数据可视化');
    }

Done!

猜你喜欢

转载自blog.csdn.net/weixin_41290949/article/details/106238525