控制台一直出现这个错误 是为什么啊
SyntaxError: JSON.parse: end of data while reading object contents at line 3 column 15 of the JSON data
return $.parseJSON(setting)
//这是出错的那行代码;
data-setting='{
"width":1000,
"height":270,
"posterWidth":640,
"posterHeight":270,
"scale":0.9,
"speed":500,
"verticalAlign":"middle"
}'>
//这是我在节点里配置的属性
不明白哪里错了