easyui-1-基本介绍

  • 在这里就不进行过多的开头,百度一大堆,直接上代码了;
  • 首先我们需要下载; 地址:http://www.jeasyui.com/download/index.php;
  • 下载好以后,需要将文件放入到项目的webapp下面;
  • 第二:我们将一些js文件和css进行引入;当然首先要引入jquery;
    <!-- 引入jQuery --> 
    <script  src="<%=request.getContextPath()%>/js/jquery/jquery-1.7.js"></script>
    <!-- 引入easyui -->
    <script  src="<%=request.getContextPath()%>/js/easyui/jquery.easyui.min.js" ></script>
    <!-- 引入easyui  css样式  只需引入easyui.css   其中就包含了其他的内容-->
    <link rel="stylesheet" href="<%=request.getContextPath()%>/js/easyui/themes/default/easyui.css">
    <!-- 引入小图标 -->
    <link rel="stylesheet" href="<%=request.getContextPath()%>/js/easyui/themes/icon.css">
    <!-- 样式转化为中文 -->
    <script  src="<%=request.getContextPath()%>/js/easyui/locale/easyui-lang-zh_CN.js"></script>

  • 第三,我们可以将以上进行封装在一个jsp文件中,然后每次引入的时候,直接引入jsp页面即可;easyui引入js
  • 然后在我门需要的页面上引入;引入jsp
<jsp:include page="../util/easyui.jsp"></jsp:include>
  • 以上内容就是前提工作,只有有了以上的工作,在项目中才能够使用easyui;
  • 第四:我们需要下载一下easyui的API;结合API我们可以进行查找,我们需要的功能;地址:http://download.csdn.net/download/jx_521/9647628;

猜你喜欢

转载自blog.csdn.net/m0_37392489/article/details/54667662
今日推荐