Ember:使用this.get('controller.').content,find方法
Ember: Using this.get('controller.').content, find methods
我正在使用this.get('controller.raceModal').内容,我试图实现的就是这个;
如果我深入研究以下表达式
this.get('controller.raceModal').content.content
我找到了一个包含一堆对象的数组,我正在尝试查看内容中的某个方法是否允许我进行查找。这些对象有一个属性"id",我想在类似的东西上找到它
this.get('controller.raceModal').content.find({'id', '15'})
这可能吗?
您没有说明要在哪里进行此操作(控制器、路由),但如果它确实是一个数组,则应该能够做到这一点:
this.get('controller.raceModal').findBy('id', '15')
相关文章:
- .Find()仅显示可见元素
- jQuery(this).Pparent().Pparente().Prent().find()在iPad上不起作用
- @Url.Content(“~”)不适用于localhost
- 节点,express应用程序返回text/javascript响应头(Content-Type),尽管设置了applic
- 他们是如何使用angular/jqLite find()方法按属性名称和值选择元素的?ng conf 2015
- jQuery find() Issue
- 使用jquery Find()在复选框中查找图像
- strongloop script.js run find in before delete方法:如何同步运行异步方法
- 在另一个Find(..)的回调内部查找,如何逃离回调地狱
- $(e.target).find和template.find('input').value之间有什么区别
- 为什么我得到了一个“;未定义的“;使用“”从Find()返回值;这个“;论点
- X-Content-Type-Options=nosniff解决方法
- .map-find元素一旦通过AJAX加载
- MongoDB collection.find()查询挂起
- 计算content中的数字总和使用Jquery可编辑文本
- 如何在jQuery中使用find
- 无法将参数传递给mongo find集合
- 为什么不是't my css `content:`在多个浏览器中工作,并总体上提高跨浏览器兼容性
- Ember.js-模型find()方法中的异步调用
- Ember:使用this.get('controller.').content,find方法