easyui引入

下载地址:

https://www.jeasyui.com/download/v18.php

jquery easyui需要引入的文件有如下5个:
<!-- jquery核心库 -->

1 <script type="text/javascript" src="easyui/jquery.min.js"></script> 

<!-- easyui核心库 --> 

2 <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>

<!-- easyui核心UI文件 css -->  

3 <link href="easyui/themes/default/easyui.css" rel="stylesheet" type="text/css"/>

<!-- easyui图标 -->

4 <link href="easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
jquery核心库一定要放在easyui核心库前面引入,不然jquery.easyui.min.js中会报错:jQuery is not defined。

有的时候,我们需要进行国际化,比如一些提醒、日历等,就需要引入easyui的国际化文件,代码如下:

<!-- easyui国际化文件 --> 

5 <script type="text/javascript" src="../resource/js/jquery-easyui-1.5/locale/easyui-lang-zh_CN.js"></script>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% String path = request.getContextPath(); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>easyui</title>
<script>
var path='<%=path%>';
</script>
</head>
<body>

<!--1 jquery核心库 -->

 <script type="text/javascript" src="<%=path%>/js/jquery-easyui-1.6.11/jquery.min.js"></script> 

<!--2 easyui核心库 --> 

<script type="text/javascript" src="<%=path%>/js/jquery-easyui-1.6.11/jquery.easyui.min.js"></script>

<!--3 easyui核心UI文件 css -->  

<link href="<%=path%>/js/jquery-easyui-1.6.11/themes/default/easyui.css" rel="stylesheet" type="text/css"/>

<!-- 4 easyui图标 -->

<link href="<%=path%>/js/jquery-easyui-1.6.11/themes/icon.css" rel="stylesheet" type="text/css"/>
<!-- jquery核心库一定要放在easyui核心库前面引入,不然jquery.easyui.min.js中会报错:jQuery is not defined。-->


<!--有的时候,我们需要进行国际化,比如一些提醒、日历等,就需要引入easyui的国际化文件,代码如下: -->
<!--6 easyui国际化文件 --> 
<!--  
<script type="text/javascript" src="../resource/js/jquery-easyui-1.5/locale/easyui-lang-zh_CN.js"></script>
-->

</body>
</html>
原文地址:https://www.cnblogs.com/lukelook/p/11178934.html