---
title: "树形面板Ext.tree.Panel"
author: "tesia"
date: "2013-07-05T15:19:25Z"
tags: []
categories: ["Web前端"]
slug: "ext-tree-panel"
draft: false
lastmod: "2013-07-05T15:20:13Z"
id: 1900098
url: "https://tesia.iteye.com/blog/1900098"
---

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link  rel="stylesheet" type="text/css"  href="ext-4.0.7-gpl/resources/css/ext-all.css" />
<script type="text/javascript"  src="ext-4.0.7-gpl/bootstrap.js"></script>
<script type="text/javascript" src="ext-4.0.7-gpl/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
		Ext.onReady(function(){
			<span style="color:red">Ext.create('Ext.tree.Panel',{</span>
		   title:'tree 面板简单示例',
		   width:180,
		   height:200,
		   renderTo:Ext.getBody(),
		   root:{
			    text:'树根',
				<span style="color:red">expanded:true, //默认展开根节点</span>
				children:leaf:true //true说明为叶子节点</span>
					},{
						text:'节点二',
						leaf:true
						}]
			   }
		});	
			});
		
</script>
</head>

<body>

</body>
</html>