我目前在Angular4应用程序中工作。而我使用的是输入类型日期,它使用的是铬,而不是mozilla。如何解决这个问题?我以为我可以使用jQueryUi数据报警器,但它也产生了一些问题。
对此有什么想法吗?
发布于 2017-09-27 13:09:25
使用jQuery Ui数据报警器解决了这个问题。就像这样。
import { Component, AfterViewInit, ElementRef, ViewChild } from '@angular/core';
...
declare var $: any;
export class MyClass implements AfterViewInit {
@ViewChild('datepicker1') el1: ElementRef;
...
ngAfterViewInit() {
$(this.el1.nativeElement).datepicker();
发布于 2017-09-27 04:34:57
https://stackoverflow.com/questions/46436727
复制相似问题