实现代码
var total=15;

var item=4;

var page=total%item==0?(total/item):(Math.floor(total/item)+1);

console.log(page)

 



相关文章:

  • 2022-02-10
  • 2021-10-24
  • 2022-12-23
  • 2021-07-20
  • 2021-08-02
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案