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优缺点分析说明
Jun 09 Javascript
javascript清空table表格的方法
May 14 Javascript
jQuery实用技巧必备(下)
Nov 03 Javascript
不同js异步函数同步的实现方法
May 28 Javascript
AngularJS基础 ng-paste 指令简单示例
Aug 02 Javascript
使用vue-cli+webpack搭建vue开发环境的方法
Dec 22 Javascript
基于zTree树形菜单的使用实例
Dec 25 Javascript
JS 实现百度搜索功能
Feb 01 Javascript
更改BootStrap popover的默认样式及popover简单用法
Sep 13 Javascript
vue前后分离调起微信支付
Jul 29 Javascript
js脚本中执行java后台代码方法解析
Oct 11 Javascript
Vue执行方法,方法获取data值,设置data值,方法传值操作
Aug 05 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
PHP 数组遍历方法大全(foreach,list,each)
2010/06/30 PHP
PHP时间和日期函数详解
2015/05/08 PHP
PHP Filter过滤器全面解析
2016/08/09 PHP
php中类和对象:静态属性、静态方法
2017/04/09 PHP
PHP模型Model类封装数据库操作示例
2019/03/14 PHP
JQuery 引发两次$(document.ready)事件
2010/01/15 Javascript
js 通用javascript函数库整理
2011/08/14 Javascript
iphone safari不支持position fixed的解决方法
2012/05/04 Javascript
javascript 上下banner替换具体实现
2013/11/14 Javascript
javascript继承机制实例详解
2014/11/20 Javascript
JS实现先显示大图后自动收起显示小图的广告代码
2015/09/04 Javascript
JS对大量数据进行多重过滤的方法
2016/11/04 Javascript
JavaScript三种绑定事件方式及相互之间的区别分析
2017/01/10 Javascript
JS验证input输入框(字母,数字,符号,中文)
2017/03/23 Javascript
JS库之wow.js使用方法
2017/09/14 Javascript
Javascript防止图片拉伸的自适应处理方法
2017/12/26 Javascript
解决layui轮播图有数据不显示的情况
2019/09/16 Javascript
vue.js实现三级菜单效果
2019/10/19 Javascript
Vue过渡效果之CSS过渡详解(结合transition,animation,animate.css)
2020/02/05 Javascript
小程序富文本提取图片可放大缩小
2020/05/26 Javascript
vue cli4.0项目引入typescript的方法
2020/07/17 Javascript
[54:10]完美世界DOTA2联赛PWL S2 Magma vs FTD 第二场 11.29
2020/12/03 DOTA
为Python的Tornado框架配置使用Jinja2模板引擎的方法
2016/06/30 Python
Python3爬虫爬取百姓网列表并保存为json功能示例【基于request、lxml和json模块】
2018/12/05 Python
解决Pycharm界面的子窗口不见了的问题
2019/01/17 Python
Pycharm 文件更改目录后,执行路径未更新的解决方法
2019/07/19 Python
python GUI库图形界面开发之PyQt5动态(可拖动控件大小)布局控件QSplitter详细使用方法与实例
2020/03/06 Python
使用css3和jquery实现可伸缩搜索框
2014/02/12 HTML / CSS
Pretty Little Thing爱尔兰:时尚女性服饰
2017/03/27 全球购物
美国知名奢侈美容品牌零售商:Cos Bar
2017/04/21 全球购物
Trunki英国官网:儿童坐骑式行李箱
2017/05/30 全球购物
小车司机岗位职责
2013/11/25 职场文书
关于青春的演讲稿
2014/05/05 职场文书
无刑事犯罪记录证明范本
2014/09/29 职场文书
CSS3 实现的图片悬停的切换按钮
2021/04/13 HTML / CSS
SpringBoot项目多数据源及mybatis 驼峰失效的问题解决方法
2022/07/07 Java/Android