ExtJs의 Ext.core.DomHelper.append

1361 단어
<!DOCTYPE html>
<html>
<head>
    <title>ExtJs</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" type="text/css" href="ExtJs/packages/ext-theme-crisp/build/resources/ext-theme-crisp-all.css">
		<script type="text/javascript" src="ExtJs/ext-all.js"></script>
		<script type="text/javascript" src="ExtJs/bootstrap.js"></script>
		<script type="text/javascript" src="ExtJs/packages/ext-theme-crisp/build/ext-theme-crisp.js"></script>

    <script type="text/javascript">
			Ext.onReady(function(){
        var panel = new Ext.Panel({
          title: 'SAMPLE',
          renderTo: 'sub1',
          width: '300px',
          html: '<div id="div1" style="height:160px;padding:5px"> </div>'
        });
        Ext.core.DomHelper.append(Ext.get("div1"), "<br> ", true);
      });
    </script>
</head>
<body>
<div id=sub1></div>
</body>
</html>

좋은 웹페이지 즐겨찾기