1.官网下载easyUI 的js 压缩包。
http://www.jeasyui.com/download/index.php
解压后的目录为:

2项目中导入需要的js 和css 文件。
<script type="text/javascript" src="../jquery/jquery.min.js" ></script>
//easyUI 以jquery 为基础
<script type="text/javascript" src="../jquery/jquery.easyui.min.js"></script>//
<link type="text/css" rel="stylesheet" href="../css/default/easyui.css">
//所有css 在themes 目录下,default 是蓝色主题,gray 是灰色主题。
//easyui.css 包含了其它所有css 内容
<link rel="stylesheet" href="../css/icon.css">
//引入图标,同时需要icons 的图片文件夹
<script src="../jquery/easyui-lang-zh_CN.js"></script>
//easyui 支持国际化,该js 文件在local 目录下
引入后的项目目录:

网友评论