Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
List 将嵌套的json绑定到存储,并将该存储绑定到sencha touch 2中的列表_List_Jsonp_Sencha Touch 2 - Fatal编程技术网

List 将嵌套的json绑定到存储,并将该存储绑定到sencha touch 2中的列表

List 将嵌套的json绑定到存储,并将该存储绑定到sencha touch 2中的列表,list,jsonp,sencha-touch-2,List,Jsonp,Sencha Touch 2,说到Sencha touch 2,我是个新手。 我陷入了将jsonp数据与存储绑定的困境。 我使用newtons json库创建的jsonp数据如下:- getjobinfo({"success":true,"method":"GetJobInfo","errormsg":"","csjob":{"jobguid":"1ac1d6bf-80bd-4555-aeba-77e5bdb7b265","jobcode":"ABCDEFGH","jobdescription":"This is the j

说到Sencha touch 2,我是个新手。 我陷入了将jsonp数据与存储绑定的困境。 我使用newtons json库创建的jsonp数据如下:-

getjobinfo({"success":true,"method":"GetJobInfo","errormsg":"","csjob":{"jobguid":"1ac1d6bf-80bd-4555-aeba-77e5bdb7b265","jobcode":"ABCDEFGH","jobdescription":"This is the job description. It's a great job. You'll make a lot of money. Hardly any work required.","jobquestions":[{"jobquestionguid":"1ac1d6bf-80bd-4555-aeba-77e5bdb7b266","jobquestiontext":"Describe what you would do if you made a lot of money."},{"jobquestionguid":"1ac1d6bf-80bd-4555-aeba-77e5bdb7b267","jobquestiontext":"Please describe your unique approach to doing nothing and the biggest challenge you've faced doing nothing in other jobs."}]}});
问题的数量是动态的,取决于职务代码

我还想得到工作代码,在另一个地方我想把问题绑定到列表中

但如果我试图将问题绑定起来,我就无法访问工作代码,反之亦然

我只想用一家商店。 模型可以多次使用

但是我想把我不知道的模型联系起来


请提供帮助。

您似乎希望将JSON数据保存到
Ext.data.TreeStore
中,并通过
Ext.NestedList
显示其数据。下面是一个很好的例子:

注意:只需查看public文件夹