我在html中使用时间字段,想从 Angular Controller 中获取数据
<input type="time" ng-model="bt_time" class="form-control" style="width: 20%" required>
我想从 Controller 提供数据
$scope.bt_time='12:30';
但是我出错了
最佳答案
检查以下代码:
$scope.bt_time = new Date(2017, 0, 1, 12, 30, 0);
关于javascript - 如何从 Angular Controller 将数据输入时间标签,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45329191/