1.求余
console.log(5 % 2);//1
2.除法
console.log(5 / 2); //2.5
console.log(Math.floor(5 / 2)); //2 向下取整
console.log(parseInt(5 / 2)); //2
1.求余
console.log(5 % 2);//1
2.除法
console.log(5 / 2); //2.5
console.log(Math.floor(5 / 2)); //2 向下取整
console.log(parseInt(5 / 2)); //2