最近找到了一款支持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="p_w_picpath/x-icon"/> <link rel="shortcut icon" href="../favicon.ico" type="p_w_picpath/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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。