---
title: "extjs actioncolumn 、eclipse 启动时停在loading brend、在controller中找到view"
author: "Darlyn"
date: "2014-05-12T16:50:15Z"
tags: []
categories: ["Web前端"]
slug: "extjs-actioncolumn-eclipse-loading-brend-controller-view"
draft: false
lastmod: "2014-05-12T16:54:24Z"
id: 2065443
url: "https://darlyn.iteye.com/blog/2065443"
---

1.extjs mvc actioncolumn handler 如何在controller中定义
例子：
  http://try.sencha.com/extjs/4.1.1/community/extjs4-mvc-basic-array-grid/
  源码：
  http://try.sencha.com/extjs/4.1.1/community/extjs4-mvc-basic-array-grid/app/controller/Stocks.js

2.使用 startEclipse.bat 文件启动eclipse，停在loading brend后闪退现象
解决方法：在workspace目录下删除.metadata文件

3.在controller中找到view
在controller文件中添加refs,例：
refs:
调用该view时，使用this.getAbc()方法即可调用想要的view


4.小技巧
在不知道extjs mvc 中的 controller中如何定义监听事件时，可以在sencha 提供的examples中查询每个例子中this.control方法中的写法。