{
"familyVar": {
"colour": "Black",
"image": ${image('../../../asd914.jpg')},
"memory": "32GB"
}
}
需要将以上格式转换为以下格式 因为它无法解析,因为它会给出意外的令牌$和其他错误 jsbin
{
"familyVar": {
"colour": "Black",
"image": "${image('../../../asd914.jpg')}",
"memory": "32GB"
}
}
or
{
"familyVar": {
"colour": "Black",
"image": "../../../asd914.jpg",
"memory": "32GB"
}
}
我在想的是它不是有效的json,需要将其转换为有效的。
答案 0 :(得分:0)
{
"familyVar": {
"colour": "Black",
"image": "${image('../../../asd914.jpg')}",
"memory": "32GB"
}
}