有人可以解释什么是运营商“:?”?
答
它是安全的导航操作”,做参考go here
或借此例如
<md-select placeholder="Select Month" [(ngModel)]="monthSelected"
#userSelect>
<md-option *ngFor="let userSelection of CalanderContent"
[value]="userSelection">
{{ userSelection.month }}
</md-option>
</md-select>
{{userSelect.selected.value.days}} <- Compile time error beacuse we didnt selected
any options at time of initializing.
{{userSelect.selected?.value?.days}} <- Correct because it waits if its selected
then , displays the value
即X·Y
却是:??X不x?.y –
x这里是任何不能给出即时结果的东西 –