如何通过从/ asset / location读取Json文件来制作动态页面

下面是我的JSON结构,因此需要构建页面

{
    "error": "ERROR CODE",(note: thiswillonlybepresentifanerroroccurs)"type": "native_ui","components": [
    {
        " pageHeader": "header"," elements": [
        {
            "type ": "header","content ": "header text"
        },{
            "type ": "text","content ": "text"
        },{
            "type ": "edittext","value ": "default text","inputType ": "number"/"text"/"email"/"tel"/"password","id": "componentID"
        },{
            "type ": "checkbox","label ": "text","value ": true/false,{
            "type ": "horizontal_rule"
        },{
            "type ": "line_break"
        },{
            "type ": "buttonDialog","buttonText ": "button text""header ": "header text","content ": "dialog text","positiveButton": "button text","negativeButton": "button text"/null
        },{
            "type ": "radio_group","header ": "header text","items ": [
            "item1","item2","item3","item4",&
            ],"value": 1,{
            "type ": "picker",{
            "type ": "linkDialog","link ": "link text""header ": "header text",{
            "type ": "navButton","pageIndex ": 1"content ": "button text",}
        ]
    }
    ]
}
lufengjun 回答:如何通过从/ asset / location读取Json文件来制作动态页面

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3144177.html

大家都在问