Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Ember API 中没有看到列表。在哪里可以找到此模板方法的哪些参数?鉴于它是一个未完成的功能,我可以使用它吗?
使用它并不是一个好主意,{{control}}因为它仍在开发中,很可能会改变行为。基本上它就像一个{{render}}不会继承任何上下文的沙盒。在 emberjs 指南的这个页面上提到:
{{control}}
{{render}}
{{control}} 像渲染一样工作,除了它为每次调用使用一个新的控制器实例,而不是重用单例控制器。 这个助手目前正在大力开发中,并且可能很快就会改变。
{{control}} 像渲染一样工作,除了它为每次调用使用一个新的控制器实例,而不是重用单例控制器。
这个助手目前正在大力开发中,并且可能很快就会改变。