随笔分类 -  JS

摘要:function formatSeconds(value) { var theTime = parseInt(value);// 秒 var theTime1 = 0;// 分 var theTime2 = 0;// 小时 if (theTime > 60) { theTime1 = parseIn 阅读全文
posted @ 2020-03-09 16:46 笑傲江湖ad8 阅读(1807) 评论(0) 推荐(0)
摘要://Math.ceil 向上取整 //Math.floor 向下取整 //Math.round 四舍五入 //parseInt 丢弃小数部分,保留整数部分 阅读全文
posted @ 2018-02-07 17:32 笑傲江湖ad8 阅读(150) 评论(0) 推荐(0)