0

我的云日志说它不能在 query.first.success 调用未定义的方法“成功”但是我不明白这一点,因为我的 console.log 正在显示,它在成功块内被调用。这段代码中有什么未定义的?

var query = new Parse.Query("Messages");
  query.first({
    success: function(results, response){

      console.log("The first object was retrieved");
      body = (results.get("messageBody"));
      senderName = (results.get("senderName"));
      senderId = (results.get("senderId"));

      results.destroy({
        success: function(results){

        }, error: function(results, error){

        }
      });
      response.success(results);
    }, error: function(error){
      response.error("Error");
    }

  });
4

0 回答 0