在jsp页面中使用My97DatePicker日期控件

直接看图看代码!

My97DatePicker日期控件是一个功能非常强大的日期插件,功能丰富,调用方便,配置也很灵活!至于该日期插件为什么要叫My97DatePicker这个名字呢?这个你们要去问作者了,我推测之所以叫这个名字,估计是跟它的网址有关,它的官方网址是http://www.my97.net/index.asp ,所以就取了My97DatePicker这个名字!

先去My97DatePicker日期控件官网下载日期插件

下载好之后解压,把整个文件夹拷贝到你自己的javaWeb项目中,然后在你的jsp页面<head>标签中引入WdatePicker.js就可以了!

<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>

我这里使用了红色的皮肤!想要什么皮肤,它的官网上有,可以下载你喜欢的皮肤!


my97DatePicker.jsp页面

<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>日期控件My97DatePicker</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/body.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/mark.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/console.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/console.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/weChatQRCode.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
<style type="text/css">
body {
color: #030303;
}
</style>
</head>
<body>
	<center>
		<h1>使用My97DatePicker日期控件</h1>
		<a target="_blank" href="http://www.my97.net/demo/index.htm" style="background-color: #0000AA; border-color: #0000AA;">
		My97DatePicker日期控件官方演示和api文档
		</a>
		<br><br>
		<a target="_blank" href="http://www.my97.net/index.asp" style="background-color: #8E388E; border-color: #8E388E;">
		My97DatePicker日期控件官方网站
		</a>    
		<a target="_blank" href="http://www.my97.net/down.asp" style="background-color: #CD0000; border-color: #CD0000;">
		My97DatePicker日期控件官方下载
		</a>
		<br><br>
		<a target="_blank" href="https://blog.csdn.net/emoven/article/details/41869029" style="background-color: black; border-color: black;">
		使用My97DatePicker日期控件的参考网页1
		</a>    
		<a target="_blank" href="https://www.cnblogs.com/hanwenhua/articles/3307451.html" style="background-color: green; border-color: green;">
		使用My97DatePicker日期控件的参考网页2
		</a><br><br>
		<h3>以下是使用My97DatePicker日期控件的案例demo</h3>
		请假时间:<input class="Wdate" type="text" style="width: 188px; color: #0000AA;" οnfοcus="WdatePicker()">
		    
		缴费时间:<input class="Wdate" type="text" style="width: 240px; color: #4B0082;" οnfοcus="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})">
		<br><br>
		离职时间:<input class="Wdate" type="text" style="width: 350px; color: #CD0000;" οnfοcus="WdatePicker({lang:'zh-cn', dateFmt:'yyyy年MM月dd日 HH时:mm分:ss秒'})">
		    
		入职时间:<input class="Wdate" type="text" style="width: 350px; color: black;" οnfοcus="WdatePicker({readOnly:true, lang:'zh-cn', dateFmt:'yyyy年MM月dd日 HH时:mm分:ss秒'})">
		<br><br>
	</center>
</body>
</html>

My97DatePicker日期控件的功能很丰富,具体的用法可以看它官方的api文档,文档写的很详细!

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值