twitter-bootstrap Bootstrap 的日期选择器(仅选择 Week 并使其在 IE 中工作)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13188665/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 15:38:44  来源:igfitidea点击:

Datepicker for Bootstrap (select Week only and making it work in IE)

javascriptdatetwitter-bootstrapdatepickerpicker

提问by AnimaSola

I'm using this date picker: http://www.eyecon.ro/bootstrap-datepicker/

我正在使用这个日期选择器:http: //www.eyecon.ro/bootstrap-datepicker/

2 questions:

2个问题:

  1. Anyone know how to make it work in Internet Explorer? It just doesn't, try it.
  2. How can I configure it such that it selects entire weeks? (if a person selects a specific day in the week, the value passed is the start of the week, it would also be good if it highlights the entire week on hover)
  1. 任何人都知道如何使其在 Internet Explorer 中工作?实在不行,试试吧。
  2. 如何配置它以选择整周?(如果一个人在一周中选择了特定的一天,则传递的值为一周的开始,如果悬停时突出显示整周也很好)

回答by Shalabh Aggarwal

You can try https://github.com/eternicode/bootstrap-datepickerwhich is an improved version of datepicker by eyecon.

您可以尝试https://github.com/eternicode/bootstrap-datepicker,它是 eyecon 的 datepicker 的改进版本。

You might also consider using HTML5's builtin datepicker by simply using

您也可以考虑通过简单地使用 HTML5 的内置日期选择器

<input type="date">