English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
该ConstructeurLa propriété retourne une référence à la fonction prototype créée pour l'exemple.
Pour JavaScript Numbers,la propriété constructor retourneFonction Number(){[code natif]}}。
Pour JavaScript Date,la propriété constructor retourneFonction Date(){[code natif]}}。
Pour JavaScript Boolean,la propriété constructor retourneFonction Boolean(){[code natif]}}。
Pour JavaScript Array,la propriété constructor retourneFonction Array(){[code natif]}}。
Pour JavaScript String,la propriété constructor retourneFonction String(){[code natif]}}。
number.constructor
var num = 20; num.constructor;Vérifiez et voyez‹/›
Tous les navigateurs supportent pleinement la propriété Constructor :
Propriétés | |||||
constructor | Oui | Oui | Oui | Oui | Oui |
Valeur de retour : | Retourne la fonction exemple créée pour cet objet, c'est-à-direFonction Number(){[code natif]}} |
---|---|
Version JavaScript : | ECMAScript 1 |