引用jquery和mobiscroll
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script> <script src="js/mobiscroll.custom.min.js"></script> <link href="css/mobiscroll.custom.min.css" rel="stylesheet" type="text/css" />
html
<label>日期时间</label> <input type="text" id="demo_datetime" />
js
$('#demo_datetime').mobiscroll().datetime({
theme: theme,
mode: mode,
display: display,
lang: lang,
dateformat: "yyyy-mm-dd",
mindate: new date(2000, 3, 10, 9, 22),
maxdate: new date(2030, 7, 30, 15, 44),
stepminute: 1
});