var all=15; var item=2; var pages=all%item==0?(all/item):(Math.floor(all/item)+1); console.log(pages) 相关文章: 2022-12-23 2022-02-10 2022-12-23 2022-12-23 2021-10-24 2022-12-23 2021-07-20 2021-08-02