# 在 Ember 中访问另一个模型--肯定有比 ajax 更好的方法

**URL:** <https://meta.discourse.org/t/accessing-another-model-in-ember-surely-theres-a-better-way-than-ajax/216695>\
**Category:** Development\
**Created:** [2022 年2 月 1 日 14:23 UTC](https://meta.discourse.org/t/accessing-another-model-in-ember-surely-theres-a-better-way-than-ajax/216695 "2022-02-01T14:23:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
发布日期： [2022 年2 月 1 日 15:41 UTC](https://meta.discourse.org/t/accessing-another-model-in-ember-surely-theres-a-better-way-than-ajax/216695/2 "2022-02-01T15:41:57Z")

</div>

如果处理的对象是 `Group` 模型对象，则可以直接在其上调用 `addMembers`。如果不是，则可以使用 `Group.findAll` 方法。

有关用法，请查阅代码库。

---

_[View the full topic](https://meta.discourse.org/t/accessing-another-model-in-ember-surely-theres-a-better-way-than-ajax/216695)._
