继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

支持IE8的jquery时间控件

安卓软件程序开发入门学习
关注TA
已关注
手记 289
粉丝 49
获赞 282

最近找到了一款支持IE8的时间控件,支持年月日时分秒

使用方法很简单

<!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>基础示例 - LHGCALENDAR</title>   	<link rel="icon" href="../favicon.ico" type="image/x-icon"/>	<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon"/>	<link href="../_doc/common.css" type="text/css" rel="stylesheet"/>	<link href="../_doc/prettify/prettify.css" type="text/css" rel="stylesheet"/>	<script type="text/javascript" src="../_doc/prettify/prettify.js"></script>	<script type="text/javascript" src="../jquery-1.7.1.min.js"></script>	<script type="text/javascript" src="../lhgcalendar.min.js"></script>	<!--<script type="text/javascript" src="demo.js"></script>-->	<script type="text/javascript" >		$(function() {			$("#test").calendar();//年月日的格式			$("#test1").calendar({ format:'yyyy-MM-dd HH:mm:ss' });//年月日时分秒的格式		});	</script></head><body>    	 <input type="text" id="test">	 <input type="text" id="test1">	</body></html>其他用法相同,见附件中的demo


打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP