---
title: "extjs的一些组件"
author: "sam406"
date: "2012-10-17T22:34:57Z"
tags: []
categories: ["Web前端"]
slug: "extjs"
draft: false
lastmod: "2012-10-17T22:34:27Z"
id: 1700588
url: "https://sam406.iteye.com/blog/1700588"
---

<script type="text/javascript">
  Ext.onReady(function(){
      //定义树的跟节点
	  var rootNode = {
     text     : 'Root Node',
     expanded : true,
     children : 
                 }
             ]
         }
     ]
 }
 var tree = {
     xtype      : 'treepanel',
     id         : 'treepanel',
     autoScroll : true,
     root       : rootNode
 }
 new Ext.Window({
     height     : 200,
     width      : 200,
     layout     : 'fit',
     border     : false,
     title      : 'Our first tree',
     items      : tree
 }).show();
   });
 </script>