如何在 knockout.js 中绑定输入类型 'time'
How to bind an input type 'time' in knockout.js
我以为它是这样的,但它不起作用 -
HTML:
<input id="timePicker" type="time" placeholder="HH:MM" required="" data-bind="value: timeFrom">
JS:
self.timeFrom = ko.observable("8:00");
应该设置为"08:00"
:
self.timeFrom = ko.observable("08:00");
我以为它是这样的,但它不起作用 -
HTML:
<input id="timePicker" type="time" placeholder="HH:MM" required="" data-bind="value: timeFrom">
JS:
self.timeFrom = ko.observable("8:00");
应该设置为"08:00"
:
self.timeFrom = ko.observable("08:00");