<small id='fWLTw'></small><noframes id='fWLTw'>

    <i id='fWLTw'><tr id='fWLTw'><dt id='fWLTw'><q id='fWLTw'><span id='fWLTw'><b id='fWLTw'><form id='fWLTw'><ins id='fWLTw'></ins><ul id='fWLTw'></ul><sub id='fWLTw'></sub></form><legend id='fWLTw'></legend><bdo id='fWLTw'><pre id='fWLTw'><center id='fWLTw'></center></pre></bdo></b><th id='fWLTw'></th></span></q></dt></tr></i><div id='fWLTw'><tfoot id='fWLTw'></tfoot><dl id='fWLTw'><fieldset id='fWLTw'></fieldset></dl></div>

    • <bdo id='fWLTw'></bdo><ul id='fWLTw'></ul>
  • <tfoot id='fWLTw'></tfoot>

        <legend id='fWLTw'><style id='fWLTw'><dir id='fWLTw'><q id='fWLTw'></q></dir></style></legend>

      1. 如何制作 Parse.Query.AND?

        时间:2023-09-08

      2. <tfoot id='3SKR3'></tfoot>
      3. <i id='3SKR3'><tr id='3SKR3'><dt id='3SKR3'><q id='3SKR3'><span id='3SKR3'><b id='3SKR3'><form id='3SKR3'><ins id='3SKR3'></ins><ul id='3SKR3'></ul><sub id='3SKR3'></sub></form><legend id='3SKR3'></legend><bdo id='3SKR3'><pre id='3SKR3'><center id='3SKR3'></center></pre></bdo></b><th id='3SKR3'></th></span></q></dt></tr></i><div id='3SKR3'><tfoot id='3SKR3'></tfoot><dl id='3SKR3'><fieldset id='3SKR3'></fieldset></dl></div>

        <small id='3SKR3'></small><noframes id='3SKR3'>

              <bdo id='3SKR3'></bdo><ul id='3SKR3'></ul>

              1. <legend id='3SKR3'><style id='3SKR3'><dir id='3SKR3'><q id='3SKR3'></q></dir></style></legend>
                  <tbody id='3SKR3'></tbody>

                • 本文介绍了如何制作 Parse.Query.AND?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我需要用 and 连接 Parse.com 中的 2 个查询,我的代码是:

                  I need to connect 2 queries in Parse.com with an and, my code is:

                      var queryDeseo1 = new Parse.Query(DeseosModel);
                      queryDeseo1.equalTo("User", Parse.User.current());
                      queryDeseo1.equalTo("Deseo", artist);
                  
                      queryDeseo1.find({...
                  

                  .find 的结果是所有具有 User = Parse.User.current()) 的对象和所有具有 Deseo = Artist<的对象/code> 但我希望将两个查询的对象放在一起:

                  The result of the .find is all the objects with User = Parse.User.current()) and all the objects with Deseo = artist but I want the objects with the two queries together:

                  User = Parse.User.current())Deseo = 艺术家

                  推荐答案

                  您实际上已经正确设置了它以执行 AND 查询.问题(假设您的数据结构设置正确)是您的 User 字段是指向 User 表的指针.因此,您需要查询一个等于指针的用户,而不是一个等于 Parse.User.current() 的用户,后者将返回一个字符串.类似于以下内容:

                  You've actually got it setup correctly to do an AND query. The problem (assuming that your data structure is setup properly) is that your User field is a Pointer to the User table. Therefore, you need to query for a User equal to the pointer, as opposed to a User equal to Parse.User.current() which will return a string. Something like the following:

                  var userPointer = {
                    __type:    'Pointer',
                    className: 'User',
                    objectId:  Parse.User.current().id
                  }
                  
                  queryDeseo1.equalTo('User', userPointer);
                  

                  这篇关于如何制作 Parse.Query.AND?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                        <tbody id='z75gx'></tbody>

                          <bdo id='z75gx'></bdo><ul id='z75gx'></ul>
                        • <legend id='z75gx'><style id='z75gx'><dir id='z75gx'><q id='z75gx'></q></dir></style></legend>

                        • <i id='z75gx'><tr id='z75gx'><dt id='z75gx'><q id='z75gx'><span id='z75gx'><b id='z75gx'><form id='z75gx'><ins id='z75gx'></ins><ul id='z75gx'></ul><sub id='z75gx'></sub></form><legend id='z75gx'></legend><bdo id='z75gx'><pre id='z75gx'><center id='z75gx'></center></pre></bdo></b><th id='z75gx'></th></span></q></dt></tr></i><div id='z75gx'><tfoot id='z75gx'></tfoot><dl id='z75gx'><fieldset id='z75gx'></fieldset></dl></div>

                          <small id='z75gx'></small><noframes id='z75gx'>

                          <tfoot id='z75gx'></tfoot>