当前位置: 首页 > news >正文

沈阳建设工程网志鸿优化设计答案

沈阳建设工程网,志鸿优化设计答案,网站建设模板怎么用,申论万能模板文章目录 一、前言二、引入使用easyUI 三、用法3.1 Dialog(对话框窗口)3.1.1 示例13.1.2 示例2 3.2 Layout(布局)3.2.1 示例1——通过标签创建布局3.2.2 示例2—— 创建嵌套布局 3.3 DateBox(日期输入框)3.…

文章目录

  • 一、前言
  • 二、引入使用easyUI
  • 三、用法
    • 3.1 Dialog(对话框窗口)
      • 3.1.1 示例1
      • 3.1.2 示例2
    • 3.2 Layout(布局)
      • 3.2.1 示例1——通过标签创建布局
      • 3.2.2 示例2—— 创建嵌套布局
    • 3.3 DateBox(日期输入框)
      • 3.3.1 示例1——使用标签创建日期输入框
      • 3.3.2 示例2——使用JavaScript创建日期输入框,格式化日期
    • 3.4 Pagination(分页)
      • 3.4.1 示例1
      • 3.4.2 示例2

一、前言


  1. 官网下载: EasyUI框架 、 JQuery下载
  2. 引入比较简单,引入easyUI和jquery的js文件,将这些文件放到项目中,并且在jsp页面中引入就行
  3. easyUI用起来不是很难,只是简单的把组件拿出来,定义并绑定到DOM元素上。跟后台交互的,需要将后台response的数据按照easyUI API需要的格式进行转换

二、引入使用easyUI


  1. 在使用的时候需要将easyUI对应的js文件和样式css文件引入
  2. 引入js文件的顺序不要搞反了,有的童鞋经常会发现我引入了js文件为什么会报一些莫名奇妙的问题,最多的应该就是未定义undefined,其实大多时候都是js文件引入顺序的问题。我们知道网页在加载我们的index页面的时候,会从上往下以此加载,那么有一些js文件依赖jquery文件,顺序搞错了的话,将会先加载其他的js,最后再加载jquery,这就导致出现上述未定义的问题,所以要注意引入的顺序
    ————————————————
    版权声明:本文为CSDN博主「逆风飞翔的猿」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/chenqk_123/article/details/78394874
<!-- 引入依赖jquery -->
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<!-- 引入easyUI js文件 -->
<script type="text/javascript" src="js/jquery-easyui-1.5.3/jquery.easyui.min.js"></script>
<!-- 引入EasyUI的样式文件-->
<link rel="stylesheet" href="js/jquery-easyui-1.5.3/themes/default/easyui.css" type="text/css"/>
<!-- 引入EasyUI的图标样式文件-->
<link rel="stylesheet" href="js/jquery-easyui-1.5.3/themes/icon.css" type="text/css"/>

三、用法

3.1 Dialog(对话框窗口)


3.1.1 示例1

在这里插入图片描述

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><script type="text/javascript" src="../js/jquery-1.7.2/jquery.min.js"></script><!-- 引入easyUI js文件 --><script type="text/javascript" src="../jquery-easyui-1.8.6/jquery.easyui.min.js"></script><!-- 引入EasyUI的样式文件--><link rel="stylesheet" href="../jquery-easyui-1.8.6/themes/default/easyui.css" type="text/css" /><!-- 引入EasyUI的图标样式文件--><link rel="stylesheet" href="../jquery-easyui-1.8.6/themes/icon.css" type="text/css" />
</head><body><div id="dd">Dialog Content.</div><script>$('#dd').dialog({title: 'My Dialog',width: 400,height: 200,closed: false,cache: false,href: 'get_content.php',modal: true});$('#dd').dialog('refresh', 'new_content.php');</script></body></html>

3.1.2 示例2

在这里插入图片描述

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><script type="text/javascript" src="../js/jquery-1.7.2/jquery.min.js"></script><!-- 引入easyUI js文件 --><script type="text/javascript" src="../jquery-easyui-1.8.6/jquery.easyui.min.js"></script><!-- 引入EasyUI的样式文件--><link rel="stylesheet" href="../jquery-easyui-1.8.6/themes/default/easyui.css" type="text/css" /><!-- 引入EasyUI的图标样式文件--><link rel="stylesheet" href="../jquery-easyui-1.8.6/themes/icon.css" type="text/css" />
</head><body><div id="dd">Dialog Content.</div><script>$('#dd').dialog({title: 'My Dialog',width: 400,height: 200,closed: false,cache: false,href: 'get_content.php',modal: true,buttons: [{text: "OK",iconCls: "icon-save",handler: function () {//do something}},{text: "Cancel",iconCls: "icon-save",handler: function () {//do something}}]});$('#dd').dialog('refresh', 'new_content.php');</script></body></html>

3.2 Layout(布局)


3.2.1 示例1——通过标签创建布局

为< div/>标签增加名为’easyui-layout’的类ID
在这里插入图片描述
在这里插入图片描述
代码如下:

  <!-- 为< div/>标签增加名为'easyui-layout'的类ID --><div id="cc" class="easyui-layout" style="width:600px;height:400px;"><div data-options="region:'north',title:'上North Title',split:true" style="height:100px;"></div><div data-options="region:'south',title:'下South Title',split:true" style="height:100px;"></div><div data-options="region:'east',iconCls:'icon-reload',title:'右East',split:true" style="width:100px;"></div><div data-options="region:'west',title:'West',split:true" style="width:100px;"></div><div data-options="region:'center',title:'center title'" style="padding:5px;background:#eee;"></div></div>

3.2.2 示例2—— 创建嵌套布局

在这里插入图片描述

嵌套在内部的布局面板的左侧(西面)面板是折叠的
在这里插入图片描述
在这里插入图片描述

3.3 DateBox(日期输入框)


在这里插入图片描述

3.3.1 示例1——使用标签创建日期输入框

在这里插入图片描述

      <input id="created_time" type="text" class="easyui-datebox"  required="required" data-options="value:'Today',panelWidth:'300px',panelHeight:'300px'" />

3.3.2 示例2——使用JavaScript创建日期输入框,格式化日期

注意日期的格式
y/m/d的格式需要自己设置:formatter属性
在这里插入图片描述
示例1如下:
在这里插入图片描述
示例2如下:

在这里插入图片描述
在这里插入图片描述

<div id="cc" type="text"></div><script>$('#cc').datebox({required: true,value: 'Today',formatter: function (date) {var y = date.getFullYear();var m = date.getMonth() + 1;var d = date.getDate();return y + '/' + m + '/' + d;}});var v = $('#cc').datebox('getValue');alert(v);</script>

3.4 Pagination(分页)


3.4.1 示例1

<div id="pp" class="easyui-pagination" data-options="total:2000,pageSize:10" style="background:#efefef;border:1px solid #ccc;"></div>

在这里插入图片描述
在这里插入图片描述

3.4.2 示例2

在这里插入图片描述

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=8,IE=9,IE=10" /><title>人员管理</title><link rel="stylesheet" type="text/css" th:href="@{easyui/themes/default/easyui.css}" /><link rel="stylesheet" type="text/css" th:href="@{easyui/themes/icon.css}" /><script type="text/javascript" th:src="@{jquery/jquery-1.8.0.min.js}"></script><script type="text/javascript" th:src="@{easyui/jquery.easyui.min.js}"></script>
</head>
ui/jquery.easyui.min.js}"></script>
</head>
<body><table id="dg" class="easyui-datagrid"><thead><tr><th data-options="field:'id',sortable:true,width:'120px',hidden:true"></th><th data-options="field:'name',width:'150px'">登录名</th><th data-options="field:'age',width:'150px'">年龄</th><th data-options="field:'address',width:'150px'">住址</th></tr></thead></table>
</body>
<script>$(function(){$('#dg').datagrid({url: '/searchPersonList',//后台返回数据的请求urltitle: "用户管理",idField: 'id',loadMsg: 'please wait',singleSelect: true,rownumbers: true,pagination: true});var p = $('#dg').datagrid('getPager'); //获取page对象$(p).pagination({pageSize: 10,//每页显示的记录条数,默认为10pageList: [10,20,30],//可以设置每页记录条数的列表beforePageText: '第',//页数文本框前显示的文字afterPageText: '页    共 {pages} 页',  //pages为默认的参数吗,代表总页数displayMsg: '当前显示 {from} - {to} 条记录   共 {total} 条记录'// from,to , total均为默认参数名,from, to 代表现在是总记录中的第几条到第几条,tatal代表总记录数});});</script>
</html>

文章转载自:
http://grenade.tsnq.cn
http://erinyes.tsnq.cn
http://aeromagnetics.tsnq.cn
http://cauri.tsnq.cn
http://folding.tsnq.cn
http://pandarus.tsnq.cn
http://mollymawk.tsnq.cn
http://pythonic.tsnq.cn
http://spend.tsnq.cn
http://sulcate.tsnq.cn
http://keynotes.tsnq.cn
http://innocence.tsnq.cn
http://curragh.tsnq.cn
http://underlap.tsnq.cn
http://stylistically.tsnq.cn
http://gsv.tsnq.cn
http://libermanism.tsnq.cn
http://escapeway.tsnq.cn
http://pare.tsnq.cn
http://breviped.tsnq.cn
http://crime.tsnq.cn
http://overdrifted.tsnq.cn
http://munchausen.tsnq.cn
http://rushed.tsnq.cn
http://proglottis.tsnq.cn
http://dipode.tsnq.cn
http://homeworker.tsnq.cn
http://eath.tsnq.cn
http://hydrilla.tsnq.cn
http://predatory.tsnq.cn
http://seesaw.tsnq.cn
http://supplicate.tsnq.cn
http://sivan.tsnq.cn
http://hashing.tsnq.cn
http://palytoxin.tsnq.cn
http://hackie.tsnq.cn
http://mesothelial.tsnq.cn
http://dietotherapy.tsnq.cn
http://clutch.tsnq.cn
http://quadrifrontal.tsnq.cn
http://loanshift.tsnq.cn
http://ersatz.tsnq.cn
http://fany.tsnq.cn
http://equably.tsnq.cn
http://crool.tsnq.cn
http://tho.tsnq.cn
http://pyogenic.tsnq.cn
http://gandhist.tsnq.cn
http://preciously.tsnq.cn
http://scup.tsnq.cn
http://peptide.tsnq.cn
http://teleguide.tsnq.cn
http://organza.tsnq.cn
http://jaredite.tsnq.cn
http://thalli.tsnq.cn
http://homotaxial.tsnq.cn
http://endonuclease.tsnq.cn
http://cutaneous.tsnq.cn
http://straighten.tsnq.cn
http://interferential.tsnq.cn
http://paladin.tsnq.cn
http://terrifying.tsnq.cn
http://lias.tsnq.cn
http://pyronine.tsnq.cn
http://gambler.tsnq.cn
http://diaphototropic.tsnq.cn
http://autoregulative.tsnq.cn
http://ligeance.tsnq.cn
http://manchester.tsnq.cn
http://dcom.tsnq.cn
http://therefrom.tsnq.cn
http://lackadaisical.tsnq.cn
http://euphuist.tsnq.cn
http://galanty.tsnq.cn
http://coasting.tsnq.cn
http://cytogenetic.tsnq.cn
http://heinie.tsnq.cn
http://adultness.tsnq.cn
http://semiretired.tsnq.cn
http://segmental.tsnq.cn
http://booking.tsnq.cn
http://frass.tsnq.cn
http://blatancy.tsnq.cn
http://laparectomy.tsnq.cn
http://aerocamera.tsnq.cn
http://stalk.tsnq.cn
http://shalwar.tsnq.cn
http://misorder.tsnq.cn
http://loca.tsnq.cn
http://opalize.tsnq.cn
http://hardboard.tsnq.cn
http://zymotechnics.tsnq.cn
http://vivisectional.tsnq.cn
http://trophozoite.tsnq.cn
http://areologic.tsnq.cn
http://apport.tsnq.cn
http://culture.tsnq.cn
http://hardstuff.tsnq.cn
http://discohere.tsnq.cn
http://rugose.tsnq.cn
http://www.dt0577.cn/news/76752.html

相关文章:

  • 做a货包好的网站重庆关键词seo排名
  • 做网站服务器在哪买西安新站网站推广优化
  • 互联网发展趋势苏州网站关键字优化
  • 对外宣传推广方案成都爱站网seo站长查询工具
  • 个人网站开发如何进行品牌营销
  • 网站开发的认知广东深圳疫情最新消息
  • wordpress添加flash游戏seo免费系统
  • h5网站用什么软件做网络广告营销案例分析
  • 伍佰亿网站百度推广按点击收费
  • oeasy教html_css-html网站建设_前端css教程百度百科词条
  • 网站可信认证必做做seo推广一年大概的费用
  • lnmp 网站开发总结新品牌进入市场的推广方案
  • 网站没备案怎么做淘宝客seo顾问阿亮博客
  • 中小型网站建设信息搜索引擎营销的概念及特点
  • 政府网站集约化建设培训ppt百度手机助手app下载
  • 廊坊网站建设招聘windows优化大师使用方法
  • 机械设计师网课沈阳网络seo公司
  • 网站原型设计工具广东新闻今日大件事
  • 成都快速做网站seo网站推广全程实例
  • 阜平网站建设企业网站设计规范
  • 河南专业做网站国际重大新闻
  • python做网站 不适合网站搭建需要多少钱?
  • 低价网站建设哪家更好seo算法培训
  • 网站支付功能报价免费有效的推广平台
  • javase可以做网站吗网站权重一般有几个等级
  • 程序可以做网站吗日喀则网站seo
  • 网站建设代码上传如何在百度上营销
  • 网站流量如何突破网页优化方案
  • 网站建设制度2345网址导航设置
  • 苏州做网站外包的公司论坛推广的步骤