JavaScript实现取整和取模

[size=medium][color=green]//以分钟为基数,获取分钟包含的天、小时、分钟[/color][/size] function getCostTime(minutes){ var day=parseInt(minutes/1440); var hour=parseInt(minutes/60); var minute=parseInt(minutes%60);
相关文章
相关标签/搜索