首页 > 代码库 > EasyUI初始化

EasyUI初始化

 1 <%@ page language="java" contentType="text/html; charset=UTF-8"
 2     pageEncoding="UTF-8"%>
 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 4 <html>
 5 <head>
 6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 7 <title>Insert title here</title>
 8 
 9 <!-- 引入必要文件 -->
10 <script type="text/javascript" src="jquery-easyui-1.5.2/jquery.min.js"></script>
11 <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.2/themes/default/easyui.css" />
12 <link rel="stylesheet" type="text/css" href="jquery-easyui-1.5.2\themes\icon.css" />
13 <script type="text/javascript" src="jquery-easyui-1.5.2\jquery.easyui.min.js"></script>
14 <script type="text/javascript" src="jquery-easyui-1.5.2\locale\easyui-lang-zh_CN.js"></script>
15 <!-- END 引入必要文件 -->
16 
17 <script type="text/javascript">
18     $(function(){
19         /* $.messager.alert(‘提示‘,‘删除成功!‘); */
20         
21         /* $.messager.confirm(‘提示‘,‘确定删除吗?‘,function(r){
22             if (r){
23                 alert(‘删除成功!‘);
24             } else {
25                 alert(‘取消删除!‘);
26             }
27         }); */
28         
29         /* $.messager.prompt(‘对话框‘, ‘输入你的姓名‘, function(r){
30             if (r){
31                 alert(‘姓名:‘ + r);
32             }
33         }); */
34         
35         /* $.messager.progress({
36             title:‘进度‘,
37             msg:‘内容‘,
38             text:‘正在加载...‘,
39             interval:1000
40         }); */
41         
42         $.messager.show({
43             title:My Title,
44             msg:Message will be closed after 5 seconds.,
45             timeout:5000,
46             showType:slide
47         });
48         
49     });
50     
51 </script>
52 
53 </head>
54 <body>
55     
56 </body>
57 </html>

 

EasyUI初始化