2017-07-06 47 views
0

我有一个简单的离子v1应用程序示例,其中包含input类型的日期。我的代码是:Ionic v1 type =“date”

<!DOCTYPE html> 
<html> 
    <head> 
    <meta charset="utf-8"> 
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> 
    <link href="https://code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"> 
    <script src="https://code.ionicframework.com/nightly/js/ionic.bundle.js"></script> 
    </head> 
    <body ng-app="app"> 
    <ion-pane> 
     <ion-header-bar class="bar-stable"> 
     <h1 class="title">Awesome App</h1> 
     </ion-header-bar> 
     <ion-content class="padding"> 
     <input type="date"> 
     </ion-content> 
    </ion-pane> 
    </body> 
</html> 

并链接上面的代码是here

问题是要显示日历选择器。 如果我会把

<input type="date"> 

jsfiddle,日历选择器工作正常,作为一个普通的HTML标签。

Chrome版本:版本59.0.3071.115(正式版本)(64位)

离子的例子在微软边缘工作正常。 Firefox和IE无法正常工作。

有人知道如何显示Ionic v1的日历选取器吗?

回答