<!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(){
[color=red]Ext.create('Ext.tree.Panel',{[/color]
title:'tree 面板简单示例',
width:180,
height:200,
renderTo:Ext.getBody(),
root:{
text:'树根',
[color=red]expanded:true, //默认展开根节点[/color]
children:[{
text:'节点一',
[color=red]leaf:true //true说明为叶子节点[/color]
},{
text:'节点二',
leaf:true
}]
}
});
});
</script>
</head>
<body>
</body>
</html>
<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(){
[color=red]Ext.create('Ext.tree.Panel',{[/color]
title:'tree 面板简单示例',
width:180,
height:200,
renderTo:Ext.getBody(),
root:{
text:'树根',
[color=red]expanded:true, //默认展开根节点[/color]
children:[{
text:'节点一',
[color=red]leaf:true //true说明为叶子节点[/color]
},{
text:'节点二',
leaf:true
}]
}
});
});
</script>
</head>
<body>
</body>
</html>