提交 0f4e8e0f 编写于 作者: K kener

极坐标 IE7 charAt bug fix

上级 f585243a
......@@ -711,11 +711,11 @@ define(
if (!power) {
str = (delta + '').split('.')[0];
n = str.length;
if (str[0] >= 5) {
if (str.charAt(0) >= 5) {
return Math.pow(10, n);
}
else {
return (str[0] - 0 + 1 ) * Math.pow(10, n - 1);
return (str.charAt(0) - 0 + 1 ) * Math.pow(10, n - 1);
}
}
else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册