错误:<path>属性d:预期的数字

时间:2018-02-13 08:48:28

标签: angularjs node.js firebase ionic-framework firebase-realtime-database

我正在尝试从Firebase中检索值,并通过循环Firebase中每个路径的总和来计算这些值的均值并保留在每个变量中。

然后,我除以 checkCount 的数量。

但它显示我这样的错误......

  

错误:属性d:预期数字,“... A 50 50 0 0 1 NaN   NAN”。

我发现此错误来自&gt; com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Level': was expecting ('true', 'false' or 'null')

  

this.total1 =( this.total1 / this.checkedCount)// 35行 - 42

我该如何解决这个问题? :((

Summand

1 个答案:

答案 0 :(得分:0)

这昨天解决了..

可能是使用相同变量的问题。

因此,我声明了用于保存这些分割数据的变量。 我要关闭这个。 :d