【发布时间】:2011-12-16 04:26:31
【问题描述】:
我也有类似的问题:see link
我需要确定给定的 SUBproperty 是否存在。我的 json 看起来像这样
{
"nodeX": {
"sub_node1": {
"items": {
"A": "something",
"B": "etc"
}
},
"sub_node2": {
"items": {
"A": "another thing",
"B": "blablabla",
"C": {
"top": 50,
"left": 75
}
}
}
}
}
如何进行 IF 语句查看 nodeX.sub_node2.items.C 是否存在?
如果我这样做,我会收到错误: {{if ${nodeX.sub_node2.items.C }} ... {{/if}}
【问题讨论】: