解决浮点数:
console.log(Math.formatFloat(6.8-0.9, 2));
console.log(Math.formatFloat(6.8-0.8, 2));
console.log(Math.formatFloat(6.8-0.4, 2));
console.log(Math.formatFloat(6.8-0.3, 2));
/ / 5.9 6 6.4 6.5
Math.formatFloat = function (f, digit) {
const m = Math.pow(10, digit);
return Math.round(f * m) / m;
}
Vue3.0新特性
https://www.jianshu.com/p/2c20ea71fd40
https://www.lizenghai.com/archives/61802.html
vue的插件机制原理
https://www.jianshu.com/p/bd46f519d817
https://www.jianshu.com/p/a5dc511a568e
https://segmentfault.com/a/1190000022802059
bind
https://blog.csdn.net/q3254421/article/details/82999718
移动端适配方案
https://blog.csdn.net/weixin_37632943/article/details/95471535
网友评论