JavaScript에서 null이거나 정의되지 않은 경우 값을 대체합니다. ??C # 연산자를 JavaScript 에 적용해야하는 요구 사항이 있는데 방법을 모르겠습니다. C #에서 이것을 고려하십시오. int i?=null; int j=i ?? 10;//j is now 10 이제 JavaScript로 설정했습니다. var options={ filters:{ firstName:'abc' } }; var filter=options.filters[0]||'';//should get 'abc' here, it doesn't happen var filter2=options.filters[1]||'';//should get empty string here, because there is only one filte..