People who have used Easyui know that in the Datetimebox control, the default time division seconds is the time division seconds, for example, I now click on the interface to retrieve, I choose August 1, in the text box is displayed in the value of 2015-8-1-19:03:58. A time query is a two-time control, a start time, an end time. If you choose today, it is right now and then, but if you start the time you also let the customer choose the current hour of cent by default.
You think, if I want to query is yesterday to today's data, he chose 2015-8-14 19:08:33 such a start query, that 14th number seven points before the data? If you want customers to change the control of the next time in the second, change to 00:00:00, the customer will complain.
I have been on the Internet to check the problem, but did not get the answer, you can also try Baidu, are the time format. But what I want is to set the default time division seconds to 00:00:00. Some people will say, directly to the source code to change, yes, you can change, I have tried, but you changed, all the Datetimebox control is 00:00:00 the time of the second, then you retrieve the end of the condition control, you have become such, this is not required, the end of the control is now the time of the second,
Then we can rewrite his datetimebox method, say so much, I still stickers it.
$ (' #ZJQGL_BJSJ1 '). Datetimebox ({required:false,onshowpanel:function () {$ (this). Datetimebox ("Spinner"). Timespinner ("SetValue", "00:00:00");});
justis a code like this: Said so much nonsense, haha, if a blog post only such a code words, will feel very empty, I prefer the interface at the beginning looks beautiful, full, so it's nonsense, MO Strange
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Datetimebox set default seconds and minutes