我需要将一个对象添加到另一个对象,但不确定如何。我需要将电话组添加到前台对象内部的转发对象。有谁知道如何做到这一点?请注意,也有可能将不同的对象附加到 forward 上,因此这必须是可扩展的
var frontdesk = {
"frontdesk": {
"user": "",
"waittime": "",
"forward": {}
}
}
var phonegroup = {
"phonegroup": {
"name": "",
"users": [
"",
"",
""
],
"noanswer": {
"forwardafterrings": "",
"forwardafterseconds": "",
"forwardto": ""
}
}
}