<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title id="page-title">Extjs4</title>
<link rel="stylesheet" type="text/css" href="resources/css/ext-all.css">
<style type="text/css">
.name_dept{ text-align : center ; }
</style>
<script type="text/javascript" src="ext-all.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
var department = Ext.get('department') ;
/////////////////////////////////////////////////////////
// 1. class
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
// 2.1 addCls : class 적용
/////////////////////////////////////////////////////////
department.addCls("name_dept");
/////////////////////////////////////////////////////////
// 2.2 removeCls : class 삭제
/////////////////////////////////////////////////////////
department.removeCls("name_dept");
});
</script>
</head>
<body>
<div id="department">
department
</div>
<br/>
<ul id="branches">
<li>Singapore</li>
<li>india</li>
<li>USA</li>
<li>China</li>
</ul>
</body>
</html>
'프로그래밍 > EXTJS4' 카테고리의 다른 글
EXTJS4 - update / html 내용 변경하기 (0) | 2019.12.06 |
---|---|
EXTJS4 - show, hide / html요소(dom) 사라졌다 , 나타났다. (0) | 2019.12.06 |
ExtJS4 - setStyle / html요소 (dom) style 변경하기 (0) | 2019.12.06 |
ExtJS4 - html 요소(dom) 선택하기 / get, query, select (0) | 2019.12.06 |
Extjs4 - Ext.form.field.Text를 override하여 재정의 하기 (0) | 2019.12.06 |