jquery easyui使用心得


Posted in Javascript onJuly 07, 2014

第一步下载jquery easyui 

下载地址:https://3water.com/codes/70218.html

第二步创建Java web项目

第三步导入相关的文件。。目录结构如下

<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" > 
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" > 
<script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script> 
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script> 

<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" > 
<script type="text/javascript" src="easyui/jquery.min.js"></script>
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>

jquery easyui使用心得

下载个jquery-easyui-1.3.2使用,把他导入到myeclipse10里,jquery-1.7.2.min.js报错。

解决办法:

1、选中报错的jquery文件“jquery-1.7.2.min.js”。
2、右键选择 MyEclipse-->Exclude From Validation 。
3、再右键选择 MyEclipse-->Run Validation 即可。

ui1的源码:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <base href="<%=basePath%>" rel="external nofollow" >
  
  <title>jquery easyui test 1</title>
  
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">  
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css" rel="external nofollow" >
-->
  <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" >
  <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" > 
  <!-- <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" > -->
<!-- <link rel="stylesheet" type="text/css" href="easyui/demo.css" rel="external nofollow" > -->
<script type="text/javascript" src="easyui/jquery.min.js"></script>
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
 </head>
 
 <body>
  <h2>Basic Panel</h2>
<p>The panel is a container for other components or elements.</p>
<div style="margin:20px 0 10px 0;">
<a href="#" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" onclick="javascript:$('#p').panel('open')">Open</a>
<a href="#" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" onclick="javascript:$('#p').panel('close')">Close</a>
</div>
<div id="p" class="easyui-panel" title="Basic Panel" style="width:700px;height:200px;padding:10px;">
<p style="font-size:14px">jQuery EasyUI framework helps you build your web pages easily.</p>
<ul>
<li>easyui is a collection of user-interface plugin based on jQuery.</li>
<li>easyui provides essential functionality for building modem, interactive, javascript applications.</li>
<li>using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.</li>
<li>complete framework for HTML5 web page.</li>
<li>easyui save your time and scales while developing your products.</li>
<li>easyui is very easy but powerful.</li>
</ul>
</div>

<div id="p" class="easyui-panel" style="width:500px;height:200px;padding:10px;"  
    title="My Panel" iconCls="icon-save" collapsible="true">  
  The panel content  
</div> 
 </body>
</html>

效果图:

jquery easyui使用心得

Javascript 相关文章推荐
Javascript中this的用法详解
Sep 22 Javascript
JavaScript实现自动变换表格边框颜色
May 08 Javascript
jquery获取select选中值的方法分析
Dec 22 Javascript
巧用数组制作图片切换js代码
Nov 29 Javascript
javascript基本数据类型及类型检测常用方法小结
Dec 14 Javascript
浅谈vue中使用图片懒加载vue-lazyload插件详细指南
Oct 23 Javascript
mint-ui 时间插件使用及获取选择值的方法
Feb 09 Javascript
在layui中对table中的数据进行判断(0、1)转换为提示信息的方法
Sep 28 Javascript
vuex + keep-alive实现tab标签页面缓存功能
Oct 17 Javascript
vue实现浏览器全屏展示功能
Nov 27 Javascript
JS实现百度搜索框关键字推荐
Feb 17 Javascript
vue 实现基础组件的自动化全局注册
Dec 25 Vue.js
Node.js与PHP、Python的字符处理性能对比
Jul 06 #Javascript
我的Node.js学习之路(四)--单元测试
Jul 06 #Javascript
我的Node.js学习之路(三)--node.js作用、回调、同步和异步代码 以及事件循环
Jul 06 #Javascript
我的Node.js学习之路(二)NPM模块管理
Jul 06 #Javascript
我的Node.js学习之路(一)
Jul 06 #Javascript
javascript数组操作方法小结和3个属性详细介绍
Jul 05 #Javascript
jQuery打印指定区域Html页面并自动分页
Jul 04 #Javascript
You might like
PHP实现的连贯操作、链式操作实例
2014/07/08 PHP
yii权限控制的方法(三种方法)
2015/12/28 PHP
PHP设计模式之装饰器(装饰者)模式(Decorator)入门与应用详解
2019/12/13 PHP
用js小类库获取浏览器的高度和宽度信息
2012/01/15 Javascript
JavaScript之引用类型介绍
2012/08/10 Javascript
jquery给图片添加鼠标经过时的边框效果
2013/11/12 Javascript
node.js学习总结之调式代码的方法
2014/06/25 Javascript
Node.js中安全调用系统命令的方法(避免注入安全漏洞)
2014/12/05 Javascript
JavaScript将XML转成JSON的方法
2015/03/12 Javascript
Javascript中的Prototype到底是什么
2016/02/16 Javascript
Bootstrap datepicker日期选择器插件使用详解
2017/07/26 Javascript
js 发布订阅模式的实例讲解
2017/09/10 Javascript
vuex中的 mapState,mapGetters,mapActions,mapMutations 的使用
2018/04/13 Javascript
Mac下通过brew安装指定版本的nodejs教程
2018/05/17 NodeJs
layui use 定义js外部引用函数的方法
2019/09/26 Javascript
JS+html5实现异步上传图片显示上传文件进度条功能示例
2019/11/09 Javascript
用vite搭建vue3应用的实现方法
2021/02/22 Vue.js
搞笑的程序猿:看看你是哪种Python程序员
2015/06/12 Python
分享python数据统计的一些小技巧
2016/07/21 Python
Python守护进程和脚本单例运行详解
2017/01/06 Python
python版简单工厂模式
2017/10/16 Python
简单了解什么是神经网络
2017/12/23 Python
修复CentOS7升级Python到3.6版本后yum不能正确使用的解决方法
2018/01/26 Python
Windows环境下python环境安装使用图文教程
2018/03/13 Python
Python小白必备的8个最常用的内置函数(推荐)
2019/04/03 Python
python3 使用traceback定位异常实例
2020/03/09 Python
python实现处理mysql结果输出方式
2020/04/09 Python
python 装饰器的使用示例
2020/10/10 Python
使用CSS3实现input多选框自定义样式的方法示例
2019/07/19 HTML / CSS
英国安全产品购物网站:The Safe Shop
2017/03/20 全球购物
美术专业学生个人自我评价
2013/09/19 职场文书
机械绘图员岗位职责
2013/11/19 职场文书
颂军魂爱军营演讲稿
2014/09/13 职场文书
爱心募捐通知范文
2015/04/27 职场文书
Python OpenCV实现图形检测示例详解
2022/04/08 Python
vue实现省市区联动 element-china-area-data插件
2022/04/22 Vue.js