如何从jquery中的总数中获取最后的列表编号? [英] How to get last list numbers from total number in jquery?
本文介绍了如何从jquery中的总数中获取最后的列表编号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的总记录数为128或任何数字。
我的要求是需要从分数中得到剩余数字25。
$ b $例如:128/25 = 5 =>剩余号码126,127,128
我需要从剩余价值中获得126
我有什么试过:
我试过但没有工作
i have total records 128 or any number.
My Requirement is need to get remaining numbers from the divided number by 25.
example : 128/25 = 5 => remaining numbers 126,127,128
that i need to get 126 from remaining values
What I have tried:
I have tried but not working
var num = 128/25;
num = Math.round(num);
num= (num*25);
alert(num);
推荐答案
从迭代中出错是什么问题(num + 1)
到原始输入(在您的示例中128
)?
What's wrong in iterating from(num+1)
to the original input (128
in your example)?
这篇关于如何从jquery中的总数中获取最后的列表编号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文