请参阅下面的示例代码 - 在这种情况下,我尝试检索的记录的 objectId 是已知的。
我的问题是,如果我不知道 Parse.com objectId,我将如何实现下面的代码?
var Artwork = Parse.Object.extend("Artwork");
var query = new Parse.Query(Artwork);
query.get(objectId, {
success: function(artwork) {
// The object was retrieved successfully.
// do something with it
},
error: function(object, error) {
// The object was not retrieved successfully.
// warn the user
}
});