Round a variable up to the next closest multiple of X

前端 未结 3 1357
时光取名叫无心
时光取名叫无心 2021-02-19 07:43

I\'m looking for a way to round up a number to the next closest multiple of 250. So for example if I had the following JS:

var containerHeight = $(\"#container\         


        
3条回答
提交回复
热议问题