7 lines
396 B
HTML
7 lines
396 B
HTML
<div> Math.ceil(count / pagesize); //向上整除 4/3=2;</div>
|
|
<div> Math.floor(count / pagesize); //向下整除 4/3=1;</div>
|
|
<div>
|
|
<p style="display: inline !important;"> Math.round(5/2);//四舍五入</p>
|
|
<p style="display: inline !important;"> </p>
|
|
<p style="display: inline !important;"> parseInt(5/2);//丢弃小数部分,保留整数部分</p>
|
|
</div> |