我是angular / Typescript的新手,要学习我遵循的
打字稿Class Data:
DictKey = DictKey
// multiple use of the key value of the dict...
DictKey = Key
Class Key:
key1 = key1
key2 = key2
消息如下,其中包含更多的字典键:
{"DATA1DICT1":{
"Dictkey1": {
"Key1": 1,
"Key2": 1,
"Key3": {
"Key3.1": 1,
"Key3.2": 1
},
"Key4": 1,
"Key5": "2020-05-18"
},
"DictKey2": {
"Key1": 1,
"Key2": 1,
"Key3": {
"Key3.1": 1,
"key3.2": 1
},
"Key4": 1,
"key5": "2020-05-18"
}
},
"DATA1DICT2":{
"AnotherKey": 1,
"AnotherKey": 1,
"AnotherKey": 1,
"KeyDict3": {
"Key3.1": 1,
"Key3.2": 1
},
"KeyDict4": {
"Key4.1": 1,
"Key4.2": 1
}
}
}
上面的消息是一条消息,具有上面定义的键值/动态结构作为结果
答案 0 :(得分:0)
不存在: 只是json(parse) 并像在c#中构建嵌套对象