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.
如何从与该 DataProvider 相关的自定义 ItemRenderer 类访问 dataprovider 数组集合?
您可以在自定义 ItemRenderer 中使用肮脏的方式:
if (owner.hasOwnProperty("dataProvider")) trace( owner["dataProvider"] );
但我不建议这样做。ItemRenderer 不应该有对父或父属性的引用。