最新发布 第473页

完竣世界-关注前端分享心得

js

js 小数转整数

js 小数转整数
JS小数转为整数 下退 floor 舍小数 Math.floor(12.9999) = 12 上进 ceil 只要有小数就进一 Math.ceil(12.1) = 13; 四舍五入 round Math.round(12.5) = 13 Math.round(12.4) =...

4年前 (2021-09-14) 喜欢

echarts

wave.ensureState is not a function

wave.ensureState is not a function
wave.ensureState is not a function 使用echarts水球图的时候 版本不匹配会报这个错误 我用的版本是这种 “echarts”: “^4.9.0”, “echarts-liquidfill”: “^2.0.6” ...

4年前 (2021-09-12) 喜欢