实现代码
var total=15; var item=4; var page=total%item==0?(total/item):(Math.floor(total/item)+1); console.log(page)