---
title: "清空GridPanel 内容"
author: "solon.jar"
date: "2010-12-22T10:20:01Z"
tags: []
categories: ["Web前端"]
slug: "gridpanel"
draft: false
lastmod: "2010-12-22T10:20:01Z"
id: 848993
url: "https://solon-jar.iteye.com/blog/848993"
---

在公司封装的ext框架中只需要这样调用: grid.cleanData();

其实现如下:

 

```
cleanData: function(){
		this.store.removeAll();
		this.store.modified = [];
		this.removeIds = [];
}
```