Cette donnée peut être de n'importe quelle valeur ou un objet JavaScript pris en charge par l'algorithme de clone structuré, qui inclut les références cycliques.
This may be any value or JavaScript object handled by the structured clone algorithm, which includes cyclical references.
L'attribut style accepte un objet JavaScript avec des propriétés en camelCase plutôt qu'une chaîne de caractères CSS.
Un exemple de quelque chose d'utile qui peut être fait avec cette fonction dom est un programme qui prend des objets JavaScript et en fait un résumé dans un tableau.
An example of something useful that can be done with this dom function is a program that takes JavaScript objects and summarises them in a table.
Elle démarre par l'appel de la fonction eval() qui transforme ce fichier de texte donné en argument en objet JavaScript.
Starts by the call of the eval() function which transforms the textual file given as argument into JavaScript.
Si vous avez besoin de représenter des valeurs d'autres types de données, vous pouvez les transformer lors de la conversion en chaîne de caractères ou avant de les reconvertir en objets JavaScript.
If you need JSON to represent additional data types, transform values as they are serialized or before they are deserialized.
Maintenant que nous avons récupéré et converti en objet JavaScript nos données JSON, il est temps d'en faire usage en écrivant les deux fonctions que nous évoquions ci dessus.
Now we've retrieved the JSON data and converted it into a JavaScript object, let's make use of it by writing the two functions we referenced above.
Résumé Félicitations, vous avez terminé notre premier article sur les objets JavaScript - vous devriez maintenant mieux comprendre comment on travaille avec des objets en JavaScript.
Summary Congratulations, you've reached the end of our first JS objects article - you should now have a good idea of how to work with objects in JavaScript - including creating your own simple objects.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.