📜  如何在if条件js中写入一系列数字 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:27.636000             🧑  作者: Mango

代码示例1
function between(value,first,last) {

 let lower = Math.min(first,last) , upper = Math.max(first,last);
 return value >= lower &&  value <= upper ;

}