ext js 入门之panel,tabpanel的简单使用...
时间:2010-08-11 来源:ws_hgo
<!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> <title>Panel</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="../extjs/ext-3.2.0/resources/css/ext-all.css" mce_href="extjs/ext-3.2.0/resources/css/ext-all.css" rel="stylesheet" type="text/css" /> <mce:script type="text/javascript" src="../extjs/ext-3.2.0/adapter/ext/ext-base.js" mce_src="extjs/ext-3.2.0/adapter/ext/ext-base.js"></mce:script> <mce:script type="text/javascript" src="../extjs/ext-3.2.0/ext-all.js" mce_src="extjs/ext-3.2.0/ext-all.js"></mce:script> <mce:script type="text/javascript"><!-- Ext.onReady(function() { var panel=new Ext.Panel ( { renderTo:"hello", title:"hello", width:300, h1>Welocome to http://blog.csdn.net.ws_hgo</h1>' } ); } ) // --></mce:script> </head> <body> <div id="hello"></div> </body> </html>
<!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> <title>TabPanel</title> <link href="../extjs/ext-3.2.0/resources/css/ext-all.css" mce_href="extjs/ext-3.2.0/resources/css/ext-all.css" rel="stylesheet" type="text/css" /> <mce:script type="text/javascript" src="../extjs/ext-3.2.0/adapter/ext/ext-base.js" mce_src="extjs/ext-3.2.0/adapter/ext/ext-base.js"></mce:script> <mce:script type="text/javascript" src="../extjs/ext-3.2.0/ext-all.js" mce_src="extjs/ext-3.2.0/ext-all.js"></mce:script> <mce:script type="text/javascript"><!-- Ext.onReady(function() { var tabpanel=new Ext.TabPanel ( { width:300, tabpanel.render("tab");//填充到id为tab的区域 } ) // --></mce:script> </head> <body> <div id="tab"></div> </body> </html>