The Object.defineProperty() method defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
Ver también Resumen El método Object.create() crea un nuevo objeto con el objeto y propiedades del prototipo especificado.
If you want to see how to use the Object.defineProperty method with a binary-flags-like syntax, see additional examples.
Ejemplos Herencia clásica con Object.create Debajo esta un ejemplo de como usar Object.create para lograr herencia clásica.
Further information about property descriptor types and their attributes can be found in Object.defineProperty().
Información más detallada acerca de los tipos de descripciones y sus atributos puede ser encontrada en Object.defineProperty().
There is often a difference between simply using dot notation to assign a value and using Object.defineProperty(), as shown in the example below.
Suele haber diferencias entre simplemente usar la notación con'.' y usar Object.defineProperty(), como se muestra en el siguiente ejemplo
There is another more explicit syntax to define getters and setters using Object.defineProperty; the result is more or less the same but the syntax is more tiring to write.
Existe otra sintaxis más explícita para definir getters y setters usando Object.defineProperty; el resultado es más o menos el mismo -luego veremos diferencias- pero la sintaxis es más cansada de escribir.
Property descriptors present in objects come in two main flavors: data descriptors and accessor descriptors (see Object.defineProperty() for more details).
Información más detallada acerca de los tipos de descripciones y sus atributos puede ser encontrada en Object.defineProperty().
The Object.defineProperty() method defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
Resumen El método Object.defineProperty() define una nueva propiedad sobre un objeto, o modifica una ya existente, y devuelve el objeto modificado.
false Note: Attribute is usually used by JavaScript engine, so you can't directly access it (see more about Object.defineProperty()).
false Nota: El atributo normalmente es usado por el motor de JavaScript, por lo que no puedes acceder directamente a él (Consulta acerca de Object.defineProperty()).
Creates a new object with the specified prototype object and properties. Object.defineProperty()
El método Object.create() crea un nuevo objeto con el objeto y propiedades del prototipo especificado.
Examples If you want to see how to use the Object.defineProperty method with a binary-flags-like syntax, see additional examples.
Si quiere ver algunos ejemplos de utilización del método Object.defineProperty con una sintaxis tipo binary-flags, vea ejemplos adicionales.
The static Reflect.defineProperty() method is like Object.defineProperty() but returns a Boolean.
El método estático Reflect.set() funciona igual que asignar una propiedad en un objeto. Sintaxis
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Nici un rezultat pentru acest sens.
Sinonime și analogii pentru "Object.defineProperty" în limba Română