最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Parse.com - Best way to get objectID for Parse.Model Object - Stack Overflow

programmeradmin1浏览0评论

I keep trying to grab the objectId for the Parse Parse.Model object I'm working with. The only success I've had it to use the following:

this.model.toJSON().objectId

This seems to plicated and slow since I should be able to just access a property on the object. Attempts to the use the following have only resulted in a undefined value.

this.model.get("objectId")

Any ideas on what I've missed for accessing this value?

I keep trying to grab the objectId for the Parse. Parse.Model object I'm working with. The only success I've had it to use the following:

this.model.toJSON().objectId

This seems to plicated and slow since I should be able to just access a property on the object. Attempts to the use the following have only resulted in a undefined value.

this.model.get("objectId")

Any ideas on what I've missed for accessing this value?

Share Improve this question asked Apr 15, 2013 at 18:16 devNoisedevNoise 3743 silver badges12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

You can access the object id through the id property:

this.model.id

发布评论

评论列表(0)

  1. 暂无评论