JS怎样让整数除以整数等于整数?

RT~~现在要实现
12/5=2…
C++里面直接int搞定…JS怎么搞?

  • neptune - 1年前

    这个要用下舍入

    Math.floor();