Example tutorial of bootstrap timepicker

PHPz
Release: 2018-10-15 17:02:00
Original
4164 people have browsed it

In the previous article, we talked about angular's encapsulated plug-in for timepicker, angular-bootstrap-timepicker, but the version of angular must be v1.2.30 or above. For some systems involving multiple plug-ins, upgrading can lead to many unexpected bugs. Then you can choose to use the following method to get the value.

【Related video recommendation:Bootstrap tutorial

The time format on the page is like this:

File introduction


'/bootstrap-datetimepicker.min.css','/bootstrap-datetimepicker.min.js','/bootstrap-datetimepicker.zh-CN.js',//中文包
Copy after login

html


##

         

Copy after login
js:


$('.form_datetime').datetimepicker({ language: 'zh-CN', weekStart: 1, todayBtn: 1, autoclose: 1, todayHighlight: 1, startView: 2, forceParse: 0, showMeridian: 1 });//初始化
Copy after login
dateFrom = $(= Date(dateFrom.substring(,).replace(/-/g,)).getTime()/
Copy after login
$("#effStartDate input").val(effStartDate);//赋值显示
Copy after login

Copy after login

The above is the detailed content of Example tutorial of bootstrap timepicker. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!