<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JS封装类实现年月日三级联动下拉列表</title>
<script language="javascript" src="YMDClass.js"></script>
<title>无标题文档</title>
<!-- 年月日联动下拉选择JS封装类 Ver 1.0
制作时间:2013-3-12
更新时间:2013-3-12
应用说明:页面包含<script type="text/javascript" src="YMDClass.js" charset="utf-8"></script>
<select name="year1"></select>
<select name="month1"></select>
<select name="day1"></select>
<script>
new YMDselect('year1','month1','day1',1990,2,10);
</script>
//年月联动
new YMDselect('year1','month1');
new YMDselect('year1','month1',1990);
new YMDselect('year1','month1',1990,2);
//年月日联动
new YMDselect('year1','month1','day1');
new YMDselect('year1','month1','day1',1990);
new YMDselect('year1','month1','day1',1990,2);
new YMDselect('year1','month1','day1',1990,2,10);
\*** 程序制作/版权所有:Kevin QQ:251378427 E-Mail:yeminch@qq.com 网址:http://iulog.com ***/ -->
</head>
<body>
<h2>年月日联动下拉选择JS封装类 Ver 1.0</h2>
<p>作者主页:<a target="_blank" href="http://iulog.com">http://iulog.com</a></p>
<p>更新时间:2013-3-12</p>
<p> 应用说明:页面包含脚本 <script type="text/javascript" src="YMDClass.js" charset="utf-8"></script></p>
<p>下拉框选择器: <select name="year1"></select>
<select name="month1"></select>
<select name="day1"></select></p>
<p>JS实例化,参数选取选择器select的name属性值:<script>
new YMDselect('year1','month1','day1',1990,2,10);
</script></p>
</p>
<p>年月联动无初始值:<select name="year1"></select><select name="month1"></select></p>
<p>年月联动初始年份:<select name="year2"></select><select name="month2"></select></p>
<p>年月联动初始年+月:<select name="year3"></select><select name="month3"></select></p>
<p>年月日联动无初始值:<select name="year4"></select><select name="month4"></select><select name="day4"></select></p>
<p>年月日联动初始年份:<select name="year5"></select><select name="month5"></select><select name="day5"></select></p>
<p>年月日联动初始年+月:<select name="year6"></select><select name="month6"></select><select name="day6"></select></p>
<p>年月日联动初始年+月+日:<select name="year7"></select><select name="month7"></select><select name="day7"></select></p>
<script>
new YMDselect('year1','month1');
new YMDselect('year2','month2',1990);
new YMDselect('year3','month3',2013,2);
new YMDselect('year4','month4','day4');
new YMDselect('year5','month5','day5',2012);
new YMDselect('year6','month6','day6',2013,3);
new YMDselect('year7','month7','day7',2012,12,21);
</script>
</body>
</html>
年月日三级联动纯JS封装类精简插件
需积分: 9 39 浏览量
2013-04-19
13:23:18
上传
评论
收藏 3KB ZIP 举报
Yim_QAQ
- 粉丝: 3
- 资源: 7
最新资源
- 基于SpringBoot Mybatis-Plus TypeScript的微服务多租户SaaS管理快速开发框架 .zip
- 论文复现:QA-GNN: Reasoning with Language Models and Knowledge
- ipp(intel-oneAPI)下载地址.txt
- 基于spring-boot dubbox搭建的java分布式系统的前端管理.zip
- VLC+Qt demoVLC+Qt demo
- 海彪&龙梅子 - 寂寞的人伤心的歌 (DJ版) [mqms2].ogg
- 530springboot + vue 旅游管理系统.zip(可运行源码+数据库文件+文档)
- 基于SpringBoot + Thymeleaf + Layui + Apache Shiro 的后台管理系统 .zip
- 表1:长江大学文理学院课外学分申请表.et
- base.apk
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈