【问题标题】:where can i find a strong time picker and datepicker for momentjs and knockout我在哪里可以找到一个强大的时间选择器和日期选择器用于 momentjs 和淘汰赛
【发布时间】:2014-02-20 17:32:27
【问题描述】:

我正在为 Momentjs 寻找一个强大的时间选择器和 Datepicker,并且我拥有的大部分选择器都是这样的:

http://davidwalsh.name/html5-input-types-alternative

http://makingsense.github.io/moment-datepicker/

http://www.eyecon.ro/bootstrap-datepicker/

如果可能的话,使用 html5 输入并使用 firefox 和 ie 10

谁能帮我解决这个问题?

【问题讨论】:

  • 标准输入 type=time 对我来说适用于 Knockout 和 Moment,HTML5 、jQuery 和 Bootstrap 日期选择器也是如此。使用它们有什么问题?
  • 这没有什么问题,我也在使用 html5 日期和时间输入,但我是一个跨浏览器解决方案,遇到了这个davidwalsh.name/html5-input-types-alternative,但我不确定性能,所以我问是否大项目有更好的解决方案
  • 我们使用 kendoUI。有一个很好的 kendo-knockout 库可以帮助进行内联绑定。

标签: knockout.js datepicker datetimepicker timepicker momentjs


【解决方案1】:

你可以试试这个https://knockoutplus.codeplex.com/documentation

有dataValue自定义绑定:

<input data-bind="dateValue: { value: dateValue, format: 'dd-mm-yyyy', lang: 'en' }" />

这取决于http://www.eyecon.ro/bootstrap-datepicker/,但我计划在支持时也支持 html5 输入类型,如果不支持则使用此日期选择器。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    • 1970-01-01
    • 2017-02-01
    • 2012-11-09
    • 2016-06-12
    • 2015-09-22
    相关资源
    最近更新 更多