我使用角矩选择器输入dateTimePicker的,我想今天设置日期和当前时间的输入。这是我的源代码。你能帮我么。 谢谢如何设置今天的日期和时间,默认角矩选择器
<input class="form-control"
format="DD/MM/YYYY HH:mm"
ng-model-options="{ updateOn: 'blur' }"
moment-picker="startDate"
id="startDate"
ng-model="startDate">
添加脚本代码 –
@Mr_Perfect三江源。这是我正在寻找。有什么属性添加到输入instanciate从angularjs控制器的日期? ng-model =“startDate”不起作用,如果我加入startDate = new Date();在angularjs控制器 – Rodrigo
那么,你想在输入中显示什么值?我的意思是全部价值还是只有日期和时间? –