测试积点老人 发表于 2021-12-31 10:47:07

echarts加载unexpected character at line 1 column 2 of the JSON data

json文件{
"categories": [
"苹果",
"橘子",
"荔枝",
"桃子",
"栗子",
"梨子",
"柿子"
],
"data": [
500,
280,
386,
190,
107,
207,
452
]
}
在页面报错
data: localhost:8080:37:14
data.categories:苹果,橘子,荔枝,桃子,栗子,梨子,柿子 localhost:8080:38:14
data.data:undefined localhost:8080:39:14
object
Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data


qqq911 发表于 2022-1-4 10:41:29

地址配置有问题啊
页: [1]
查看完整版本: echarts加载unexpected character at line 1 column 2 of the JSON data