Object ist der primitive JavaScript-Objekttyp. Alle JavaScript-Objekte werden von Object abgeleitet. D. h., alle JavaScript-Objekte besitzen die Methoden, die für Object definiert wurden.
Es muss in ein natives JavaScript Objekt umgewandelt werden, wenn du auf die Daten zugreifen willst.
It needs to be converted to a native JavaScript object when you want to access the data.
Über Indizes können daher IndexedDB-Daten mithilfe der Attributwerte eines JavaScript-Objekts durchsucht werden.
Thus, indexes allow you to traverse and search IndexedDB data using the attribute values on a JavaScript object.
Da JSON selbst gültiges Javascript darstellt, kann es direkt ausgeführt und somit in ein Javascript-Objekt überführt werden.
Since JSON itself is a valid Javascript, it can be executed directly and thus converted into a Javascript object.
Wenn stattdessen ein JavaScript-Objekt zurückgegeben werden soll, können Sie es mithilfe der Methode JSON.stringify in einen String konvertieren. Beispiel
If you want to return a JavaScript object instead, you could convert it into a string using the JSON.stringify method, e.g.
Wenn mit der Funktion ein JSON-String zurückgegeben wird, kann dieser mit der Methode JSON.parse wieder in ein JavaScript-Objekt umgewandelt werden. Beispiel
If you returned a JSON string from the function, you could convert it back into a JavaScript object using JSON.parse method, e.g.
Füge als Nächstes folgende Zeilen hinzu - hier setzen wir den responseType auf JSON, sodass XHR weiß, dass der Server JSON zurückgeben und im Hintergrund in ein JavaScript Objekt konvertiert werden soll.
Next, add the following two lines - here we are setting the responseType to JSON, so that XHR knows that the server will be returning JSON, and that this should be converted behind the scenes into a JavaScript object.
Alle abgerufenen Daten werden unter Verwendung der Livebindungssyntax der ASP.NET Ajax-Bibliothek angezeigt, womit Liveaktualisierungen aller beteiligten JavaScript-Objekte gewährleistet werden (siehe Abbildung 5).
Any data retrieved is displayed using ASP.NET Ajax Library live binding, which guarantees live updates to any involved JavaScript objects (see Figure 5).
In Google Maps JavaScript API werden diese Objekte als Überlagerungen bezeichnet.
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.