1. 代码在这里
https://github.com/CuriousSolutions/DateTimePicker/blob/master/dist/DateTimePicker-Zepto.js
2.国际化代码
3.使用
3.1 引入样式和JS
<link rel="stylesheet" href="/assets/plugins/DateTimePicker/DateTimePicker.css"/>
<script src="/assets/plugins/zepto.min.js"></script>
<script src="/assets/plugins/DateTimePicker/DateTimePicker-Zepto.js"></script>
<script src="/assets/plugins/DateTimePicker/DatetimePicker-i18n-zh-CN.js?random=201611131142"></script>
3.2 DOM
不要忘了在下面添加<div id="dtBox"></div>
,用于存放弹出的时间选择框
<div class="container">
<div class="page js_show">
<div class="page__bd" id="wfssp_index">
<form>
<div class="weui-cells weui-cells_form">
<!-- 违法时间 -->
<div class="weui-cell">
<div class="weui-cell__hd"><label class="weui-label">违法时间</label></div>
<div class="weui-cell__bd">
<input class="weui-input" type