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.
伙计们,我对 extJS 很陌生,我希望得到你的帮助。我有这个带有听众的 Grid.Panel,我不知道我是否做对了。无论如何,我让它打印出它的属性,但我无法获取数据。这是控制台打印的内容。
Object { internalId=, raw={...}, data={...}, more...} after clicking it:
用红色圈起来的“数据”。如何获取这些信息?我相信里面的“数据”是我点击某行时的信息。
您可以按照@sra 的建议在网格存储上添加一个负载侦听器,并遍历记录以执行另一个操作。
gridStore().load({ callback : function(records, operation, success) { //Iterate over each record and get data from record var name = records[0].get('name'); }});