請參閱下面的示例代碼 - 在這種情況下,我試圖檢索的記錄的objectId是已知的。是否有可能從parse.com檢索記錄而不知道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
}
});
你想獲得任何「藝術作品」紀錄嗎?還有多少?一,二,都是? – user94154