我是 Sencha touch 2 的新手。我被困在将 jsonp 数据与 store 绑定的地方。我使用牛顿 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."}]}});
问题的数量是动态的,取决于工作代码
我也想获得工作代码,并且在另一个地方我想将问题绑定到列表中。
但如果我尝试绑定问题,我将无法访问作业代码,反之亦然。
我只想使用一家商店。模型可以多次使用。
但是如何关联我不知道的模型。
请帮忙。