我有一个约会时间选择器:
#include <stdio.h>
#include <stdlib.h>
char pointer();
void main() {
char*name = "Paz Leviim", **p_name = &name;
*p_name = pointer();
printf("Now it's %s", *p_name);
getchar();
}
char pointer() {
char name_to_main[100];
printf("The value now is Paz Leviim\nPlease set value:");
scanf_s("%[^\n]%*c", &name_to_main,100);
return name_to_main;
}
ng模型绑定数据ok,尝试f12我可以在 ng-reflect-model 中看到它:
<mat-form-field>
<input matInput [ngModel]="sub?.startDate| date: 'dd/MM/yyyy'" (ngModel)="sub?.startDate" [matDatepicker]="fromDatePicker" placeholder="From Date">
<mat-datepicker-toggle matSuffix [for]="fromDatePicker"></mat-datepicker-toggle>
<mat-datepicker #fromDatePicker></mat-datepicker>
</mat-form-field>
版本
<input _ngcontent-c14="" class="mat-input-element mat-form-field-autofill-control ng-untouched ng-pristine ng-invalid" matinput="" placeholder="From Date" ng-reflect-mat-datepicker="[object Object]" ng-reflect-placeholder="From Date" aria-haspopup="true" id="mat-input-10" aria-invalid="false" aria-required="false" ng-reflect-model="01/11/2017">
但输入文件为空。请指教我