什么时候会执行其他条件?是否有任何可能的i值不满足任何 if,else if 条件并在javascript中达到else块。
random = Math.random();
i=0; //0,0.1,0.001
console.log(random);
if(random < i) {
console.log("<");
} else if(random > i) {
console.log(">");
} else if(random == i) {
console.log("=");
}else{
console.log("nothing");
}