Parse.com and JavaScript SDK.
I'm sure its simple, but I cannot seem to understand of fix the uncaught type error shown below. Why is this happening?
var Events = Parse.Object.extend("event");
var query = new Parse.Query(Events);
query.include("parent");
query.find({
success: function(events) {
for (var i = 0; i < events.length; i++) {
var event = events[i];
var zone = event.get("parent");
console.log(zone.get("name"));
}
},
error: function(error) {
alert(error);
}
});
if i'm correct - include stop working. I have cloud code which worked two days ago and not working today. I used include in query, and it returns 'undefined' value today.
问题是类“ zone”没有“名称”字段”,因此console.log返回“未定义”。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.