一.简介
why:快速开发
what:html4+jQuery的快速开发的前端框架
where:后端开发管理界面
常用控件:layout、tree、tabs、datagrid、form、messager、combobox
二、下载程序库并导入easyui的css和javascript到eclipse项目中去
1.相对路径(api中有)
<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
<script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
2.把相对路径改为绝对路径
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/static/js/jquery-easyui-1.5.1/themes/black/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/static/js/jquery-easyui-1.5.1/themes/icon.css">
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery-easyui-1.5.1/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery-easyui-1.5.1/jquery.easyui.min.js"></script>
3 通过标签创建布局
layout
csharp
<body class="easyui-layout">
<div data-options="region:'north',title:'网络书城',split:true" style="height:100px;"></div>
<div data-options="region:'south',title:'版权',split:true" style="height:100px;"></div>
<!-- <div data-options="region:'east',iconCls:'icon-reload',title:'East',split:true" style="width:100px;"></div>
-->
<div data-options="region:'west',title:'菜单管理',split:true" style="width:200px;">
</div>
<div data-options="region:'center',title:'内容'" style="padding:5px;background:#eee;">
</div>
</body>