如何使用jquery访问Parse中的关系数据?

时间:2015-02-02 15:55:01

标签: javascript jquery parse-platform relational

这就是我所拥有的:

我有一个名为“新闻”的课程,你可以在图片中看到,另一个课程名为“画廊”

this is what I have in News Class

and this is the view after i click on view relations and I need to find out a way that can have access to here to retrieve data

我检索这样的列数据:

ATit = [] 
ADat = []
ACon = []
AIma = []
AGal = []
new Parse.Query(Parse.Object.extend("News")).find({
                   success: function(results) { 
                   $.each(results, function (Items, Objects) {
                        ATit.push(Objects.attributes.Title)
                        ADat.push(Objects.attributes.Date)
                        ACon.push(Objects.attributes.Content)
                        AIma.push(Objects.attributes.Image.url())
                      })
                   }
                   })

但我无法从图库列中检索数据。
我想要的只是将image.url()从Gallery放入 AGal 数组中,正如您在图片中看到的那样,我在Gallery中有4个图像与图库列有关我需要知道如何才能访问它?

0 个答案:

没有答案