1.TypeError: data.forEach is not a function"

:data定义的是个对象{},改成数组[]就好

2.TypeError: data.forEach is not a function"

函数名字与属性名字重了,改名就好