javascript - Modify wdatepicker date control
高洛峰
高洛峰 2017-05-19 10:43:34
0
1
431

When I click the today button, I want the time in the form above to always display 23:59. What should I do

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
巴扎黑

To solve this problem, you can try to change your thinking. Instead of adjusting the date control, you can focus on how to process the value of the input box twice.

Listen to the change event of the input box, obtain the time string and convert it back to the timestamp for processing; then convert the timestamp to the format of year, month and day, and then splice it into 23:59 yourself. Hope it helps you.

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!