我正在使用Corinis / jsForm.js(jquery.jsForm-1.0.rc.2.js)将JSON映射到/从html字段
当我的集合深度嵌套时,我遇到了麻烦 (即该领域似乎被忽略了)
有什么建议吗?
我的json对象看起来像这样
{ "@class" : "CmsNode",
"@fieldTypes" : "createdOn=t,updatedOn=t",
"@rid" : "#13:16",
"@type" : "d",
"@version" : 18,
"children" : [ ],
"cmsRecord" : { "@class" : "CmsRecord",
"@type" : "d",
"@version" : 0,
"active" : [ { "@class" : "Record",
"@type" : "d",
"@version" : 0,
"properties" : { "alias" : "blah" }
} ],
"archive" : [ ],
"classifications" : [ ],
"keywords" : [ ],
"pending" : [ ]
},
"createdOn" : "2013-07-05 12:38:59:057",
"data" : { "name" : "test3en" },
"history" : [ ],
"isMenu" : true,
"isVisible" : false,
"mvcModel" : "dd",
"mvcView" : "aaa",
"pageViews" : [ ],
"parents" : [ "#13:9" ],
"related" : [ ],
"updatedOn" : "2013-07-08 09:06:47:610",
"uuid" : "933a10da-b9a8-44d1-9a65-adc189c740b2",
"viewClasses" : [ ]
}
我需要在属性data.cmsRecord.active.properties.alias
我正在尝试通过使用以下HTML代码实现此目的:
<div class="collection" data-field="data.cmsRecord.active">
<div>
<input type="text" name="active.properties.alias" />
</div>
</div>
答案 0 :(得分:0)
问题已由脚本作者解决。
修正版:jsForm-1.0.3.js