我是 Angular 新手,日期选择器在 IE 中无法工作,但在其他浏览器中工作正常: 代码是:
<div *ngIf="question.type!='date'">
<input type ="date" class="form-control" [formControlName]="question.key"
[id]="question.key" [type]="question.type">
question.type 数据来自后端。 有什么建议吗?这里出了什么问题?
最佳答案
您使用的 IE 版本是什么?如果您使用 HTML5 语法,那么并非所有浏览器都支持它。
检查以下线程。
How to get HTML 5 input type="date" working in Firefox and/or IE 10
如果您不想要上述解决方案,请更改输入字段属性type="date"
。到type="text"
。如果您有任何澄清,请告诉我。
关于javascript - 日期选择器在 Internet Explorer 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48073680/