我从here使用ngx-material-timepicker timePicker安装
使用命令$("div[name=Show_When_Closed]").on("click", function(){
$("div[name=Show_When_Closed]").hide(); //hide the divs whose name are Show_When_Closed
$("div[name=Show_When_Open]").show(); //show the divs whose name are Show_When_Open
});
我也安装依赖项luxon和tslib
并根据npm
npm install --save ngx-material-timepicker
并在我的html文件中
import {NgxMaterialTimepickerModule} from 'ngx-material-timepicker';
@NgModule({
imports: [NgxMaterialTimepickerModule]
})
但出错
<input [ngxTimepicker]="picker">
<ngx-material-timepicker #picker></ngx-material-timepicker>