Closed infeng closed 6 years ago
看到了,,浮点精度错误,,,谢谢/。。。
2.0.9
https://github.com/react-component/tween-one/blob/master/src/plugin/ChildrenPlugin.jsx#L47
decimal = decimal.length > 2 ? decimal.substring(0, 2) : decimal;
这里的 2
应该是 floatLength
才对
~只取前两个啊,,~
没事,,那个 toFixed 修了
搞忘了,,乱了。。。哈哈,,谢谢
:smile:
在官网的示例中随机输入一个数字会出现以下错误