前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >EasyUI日期时间框DateTimeBox

EasyUI日期时间框DateTimeBox

作者头像
达达前端
发布2019-07-16 14:40:12
8180
发布2019-07-16 14:40:12
举报
文章被收录于专栏:达达前端

WEB DEMO

日期时间框 DateTimeBox

image.png

流式日期时间框

image.png

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<HTML>
<head>
<HEAD>
    <meta charset="UTF-8">
    <meta charset =“UTF-8”>
    <title>Fluid DateTimeBox - jQuery EasyUI Demo</title>
    <title> Fluid DateTimeBox  -  jQuery EasyUI演示</ title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / default / easyui.css”>
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / icon.css”>
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <link rel =“stylesheet”type =“text / css”href =“../ demo.css”>
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.min.js”> </ script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.easyui.min.js”> </ script>
</head>
</ HEAD>
<body>
<BODY>
    <h2>Fluid DateTimeBox</h2>
    <h2> Fluid DateTimeBox </ h2>
    <p>This example shows how to set the width of DateTimeBox to a percentage of its parent container.</p>
    <p>此示例显示如何将DateTimeBox的宽度设置为其父容器的百分比。</ p>
    <div style="margin:20px 0;"></div>
    <div style =“margin:20px 0;”> </ div>
    <p>width: 50%</p>
    <p>宽度:50%</ p>
    <input class="easyui-datetimebox" style="width:50%">
    <input class =“easyui-datetimebox”style =“width:50%”>
    <p>width: 30%</p>
    <p>宽度:30%</ p>
    <input class="easyui-datetimebox" style="width:30%">
    <input class =“easyui-datetimebox”style =“width:30%”>
</body>
</ BODY>
</html>
</ HTML>

日期时间框的初始化值

image.png

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<HTML>
<head>
<HEAD>
    <meta charset="UTF-8">
    <meta charset =“UTF-8”>
    <title>Initialize Value for DateTime - jQuery EasyUI Demo</title>
    <title>初始化DateTime的值 -  jQuery EasyUI演示</ title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / default / easyui.css”>
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / icon.css”>
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <link rel =“stylesheet”type =“text / css”href =“../ demo.css”>
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.min.js”> </ script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.easyui.min.js”> </ script>
</head>
</ HEAD>
<body>
<BODY>
    <h2>Initialize Value for DateTime</h2>
    <h2>初始化DateTime的值</ h2>
    <p>The value is initialized when DateTimeBox has been created.</p>
    <p>创建DateTimeBox时初始化该值。</ p>
    <div style="margin:20px 0;"></div>
    <div style =“margin:20px 0;”> </ div>
    <input class="easyui-datetimebox" value="10/11/2012 2:3:56" style="width:200px">
    <input class =“easyui-datetimebox”value =“10/11/2012 2:3:56”style =“width:200px”>

</body>
</ BODY>
</html>
</ HTML>

显示到秒

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<HTML>
<head>
<HEAD>
    <meta charset="UTF-8">
    <meta charset =“UTF-8”>
    <title>Display Seconds - jQuery EasyUI Demo</title>
    <title>显示秒数 -  jQuery EasyUI演示</ title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / default / easyui.css”>
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / icon.css”>
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <link rel =“stylesheet”type =“text / css”href =“../ demo.css”>
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.min.js”> </ script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.easyui.min.js”> </ script>
</head>
</ HEAD>
<body>
<BODY>
    <h2>Display Seconds</h2>
    <h2>显示秒数</ h2>
    <p>The user can decide to display seconds part or not.</p>
    <p>用户可以决定是否显示秒部分。</ p>
    <div style="margin:20px 0;">
    <div style =“margin:20px 0;”>
        <span>Show Seconds: </span>
        <span>显示秒数:</ span>
        <input type="checkbox" checked onchange="$('#dt').datetimebox({showSeconds:$(this).is(':checked')})">
        <input type =“checkbox”选中onchange =“$('#dt')。datetimebox({showSeconds:$(this).is(':checked')})”>
    </div>
    </ DIV>
    <input id="dt" class="easyui-datetimebox" style="width:200px">
    <input id =“dt”class =“easyui-datetimebox”style =“width:200px”>
    
</body>
</ BODY>
</html>
</ HTML>

image.png

基础日期时间框

image.png

代码语言:javascript
复制
<!DOCTYPE html>
<html>
<HTML>
<head>
<HEAD>
    <meta charset="UTF-8">
    <meta charset =“UTF-8”>
    <title>Basic DateTimeBox - jQuery EasyUI Demo</title>
    <title>基本DateTimeBox  -  jQuery EasyUI演示</ title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / default / easyui.css”>
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel =“stylesheet”type =“text / css”href =“../../ themes / icon.css”>
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <link rel =“stylesheet”type =“text / css”href =“../ demo.css”>
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.min.js”> </ script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
    <script type =“text / javascript”src =“../../ jquery.easyui.min.js”> </ script>
</head>
</ HEAD>
<body>
<BODY>
    <h2>Basic DateTimeBox</h2>
    <h2>基本DateTimeBox </ h2>
    <p>Click the calendar image on the right side.</p>
    <p>点击右侧的日历图片。</ p>
    <div style="margin:20px 0;"></div>
    <div style =“margin:20px 0;”> </ div>
    <input class="easyui-datetimebox" required style="width:200px">
    <input class =“easyui-datetimebox”required style =“width:200px”>
</body>
</ BODY>
</html>
</ HTML>

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019.07.15 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
容器服务
腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档