【发布时间】:2018-11-13 20:00:32
【问题描述】:
我一般不熟悉nodejs和javascript。
我有以下代码需要在 nodejs 中作为变量传递:
"metadata": {
"title": "title of the track to display",
"subtitle": "subtitle of the track to display",
"art": {
"sources": [
{
"url": "https://url-of-the-album-art-image.png"
}
]
},
"backgroundImage": {
"sources": [
{
"url": "https://url-of-the-background-image.png"
}
]
}
}
到目前为止,我已经能够做到这一点:
var metadata = {
"title": "title of the track to display",
"subtitle": "subtitle of the track to display"
};
哪个有效,但我不知道如何正确传递“艺术”和“背景图像”部分。我尝试了各种方法,但都没有奏效。
【问题讨论】: