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 相关文章推荐
JQuery学习笔记 nt-child的使用
Jan 17 Javascript
jQuery实现可用于博客的动态滑动菜单
Mar 09 Javascript
分享十五款 jQuery 社交网络分享插件
May 16 Javascript
浅谈JavaScript中的字符编码转换问题
Jul 07 Javascript
基于Turn.js 实现翻书效果实例解析
Jun 20 Javascript
bootstrap table分页模板和获取表中的ID方法
Jan 10 Javascript
微信小程序 JS动态修改样式的实现代码
Feb 10 Javascript
Java中int与integer的区别(基本数据类型与引用数据类型)
Feb 19 Javascript
详解vuejs几种不同组件(页面)间传值的方式
Jun 01 Javascript
TypeScript基础入门教程之三重斜线指令详解
Oct 22 Javascript
解决Vue动态加载本地图片问题
Oct 09 Javascript
js实现鼠标拖曳效果
Dec 30 Javascript
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
Ajax提交表单时验证码自动验证 php后端验证码检测
2016/07/20 PHP
php封装的pdo数据库操作工具类与用法示例
2019/05/08 PHP
再次更新!MSClass (Class Of Marquee Scroll通用不间断滚动JS封装类 Ver 1.6)
2007/02/05 Javascript
ASP.NET jQuery 实例3 (在TextBox里面阻止复制、剪切和粘贴事件)
2012/01/13 Javascript
javascript限制文本框只允许输入数字(曾经与现在的方法对比)
2013/01/18 Javascript
javascript中日期转换成时间戳的小例子
2013/03/21 Javascript
window.onload和$(function(){})的区别介绍
2013/10/30 Javascript
css样式标签和js语法属性区别
2013/11/06 Javascript
JavaScript实现广告的关闭与显示效果实例
2015/07/02 Javascript
浅析Node.js的Stream模块中的Readable对象
2015/07/29 Javascript
JS实现弹出居中的模式窗口示例
2016/06/20 Javascript
基于JavaScript实现随机颜色输入框
2016/12/10 Javascript
es6 字符串String的扩展(实例讲解)
2017/08/03 Javascript
细说webpack源码之compile流程-入口函数run
2017/12/26 Javascript
AngularJS使用$http配置对象方式与服务端交互方法
2018/08/13 Javascript
浅谈微信小程序之官方UI框架we-ui使用教程
2018/08/20 Javascript
下载糗事百科的内容_python版
2008/12/07 Python
Pyramid Mako模板引入helper对象的步骤方法
2013/11/27 Python
Python ORM框架SQLAlchemy学习笔记之数据查询实例
2014/06/10 Python
Django中使用group_by的方法
2015/05/26 Python
对python 调用类属性的方法详解
2019/07/02 Python
详解Python Qt的窗体开发的基本操作
2019/07/14 Python
Selenium使用Chrome模拟手机浏览器方法解析
2020/04/10 Python
Python代码中如何读取键盘录入的值
2020/05/27 Python
Selenium环境变量配置(火狐浏览器)及验证实现
2020/12/07 Python
css3模拟jq点击事件的实例代码
2017/07/06 HTML / CSS
html5 application cache遇到的严重问题
2012/12/26 HTML / CSS
整理HTML5中支持的URL编码与字符编码
2016/02/23 HTML / CSS
马来西亚在线购物市场:PGMall.my
2019/10/13 全球购物
Deux par Deux官方网站:设计师童装
2020/01/03 全球购物
缴纳养老保险的证明
2014/01/10 职场文书
材料工程专业毕业生求职信
2014/03/04 职场文书
经济职业学院毕业生自荐书
2014/03/17 职场文书
租车协议书范本
2014/04/22 职场文书
党员干部学习十八届五中全会精神心得体会
2016/01/05 职场文书
MySQL 时间类型的选择
2021/06/05 MySQL