大家好我有一个类型为date的输入字段。现在我面临的问题是,在我的计算机上,它在我的桌面上显示默认占位符mm/dd/yyyy
,但在移动视图中它没有显示日期选择器。请告诉我为什么我不能看到它。
<ion-modal-view >
<ion-header-bar>
<h1 class="title" style="text-align:center;">Add Action</h1>
<div class="buttons">
<button class="button ion-android-close" ng-click="closeActionModal()"></button>
</div>
</ion-header-bar>
<ion-content>
<form ng-submit="saveData()">
<div class="list">
<label class="item item-input">
<span class="input-label">Action</span>
<input type="text" ng-model="action.name" placeholder="Add Action">
</label>
<label class="item item-input">
<span class="input-label">Target Date</span>
<input type="date" ng-model="action.date" >
</label>
<label class="item item-input">
<span class="input-label">Type</span>
<select ng-model="action.type" class="ion-input-select">
<option value= "" selected>Select</option>
<option value="key">Key Action</option>
<option value="important">Important Action</option>
<option value="additional">Additional Action</option>
</select>
</label>
<label class="item">
<button class="button button-block button-positive" type="submit">Add Action</button>
</label>
</div>
</form>