Anonymous
So erhalten Sie einen Stringwert für die Option Auswählen anstelle von Objekt: 1 usw. usw.
Post
by Anonymous » 05 Mar 2025, 07:38
Wie kann ich Winkelwert mit der tatsächlichen Zeichenfolge machen.
Code: Select all
New York City
< /code>
Anstelle dieser < /p>
New York City
< /code>
Mein Code: < /p>
City:
Select
SubArea:
Select
SpecLoc:
Select
{{city}}
< /code>
Und hier ist das Scope -Array. Bitte ignorieren Sie die falsche Benennung (Länder/Städte). Es ist ein Beispiel < /p>
$scope.countries = {
'New York City': {
'manhattan': ['Battery Park','Chelsea','Chinatown / Lit Italy','Downtown','East Harlem','East Village','Financial District','Flatiron','Gramercy','Greenwich Village','Harlem / Morningside','Inwood / Wash Hts','Lower East Side','Midtown','Midtown East','Midtown West','Murray Hill','Nolita / Bowery','SoHo','TriBeCa','Union Square','Upper East Side','Upper West Side','West Village'],
'brooklyn': [],
'queens': [],
'bronx': [],
'staten island': [],
'new jersey': [],
'long island': [],
'westchester': [],
'fairfield co': [],
'fairfield co, CT': []
},
'Chicago': {
'city of chicago': [],
'north chicagoland': [],
'west chicagoland': [],
'south chicagoland': [],
'northwest indiana': [],
'northwest suburbs': []
},
'Washington': {
'district of columbia': [],
'northern virginia': [],
'maryland': []
}
};
}
]);
1741156723
Anonymous
Wie kann ich Winkelwert mit der tatsächlichen Zeichenfolge machen.[code]New York City < /code> Anstelle dieser < /p> New York City < /code> Mein Code: < /p> City: Select SubArea: Select SpecLoc: Select {{city}} < /code> Und hier ist das Scope -Array. Bitte ignorieren Sie die falsche Benennung (Länder/Städte). Es ist ein Beispiel < /p> $scope.countries = { 'New York City': { 'manhattan': ['Battery Park','Chelsea','Chinatown / Lit Italy','Downtown','East Harlem','East Village','Financial District','Flatiron','Gramercy','Greenwich Village','Harlem / Morningside','Inwood / Wash Hts','Lower East Side','Midtown','Midtown East','Midtown West','Murray Hill','Nolita / Bowery','SoHo','TriBeCa','Union Square','Upper East Side','Upper West Side','West Village'], 'brooklyn': [], 'queens': [], 'bronx': [], 'staten island': [], 'new jersey': [], 'long island': [], 'westchester': [], 'fairfield co': [], 'fairfield co, CT': [] }, 'Chicago': { 'city of chicago': [], 'north chicagoland': [], 'west chicagoland': [], 'south chicagoland': [], 'northwest indiana': [], 'northwest suburbs': [] }, 'Washington': { 'district of columbia': [], 'northern virginia': [], 'maryland': [] } }; } ]); [/code]