在设置了关系后尝试Uncaught TypeError: Cannot set property 'success' of undefined
时获得Parse.User.current().save()
。它抱怨 - 任何想法我可能在这里做错了吗?
1 flagRead: function() {
2 // Mark as READ
3 var user = Parse.User.current();
4 var relation = user.relation("read");
5 relation.add(this.model);
6 user.save();
7 console.log("Marked as read");
8 },