会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大强子pq
博客园
首页
新随笔
联系
订阅
管理
09 2021 档案
javascript中toFixed()四舍五入计算bug
摘要:const toFixed = (target, length) => { const str = `${target}`; // 将调用该方法的数字转为字符串 const dot = str.indexOf('.'); // 找到小数点的位置 let decimal = str.split('.'
阅读全文
posted @
2021-09-18 13:39
大强子pq
阅读(125)
评论(0)
推荐(0)
公告