Liste des objets et fonctions JavaScript
Cette référence contient une liste d'objets, de fonctions et de propriétés pris en charge par le site JavaScript engine dans Qt XML. Pour une description détaillée, voir la spécification ECMA-262.
L'objet global
Valeur Propriétés
- NaN
- Infini
- indéfini
Propriétés des fonctions
- eval(x)
- parseInt(chaîne, radix)
- parseFloat(chaîne)
- isNaN(nombre)
- isFinite(nombre)
- decodeURI(encodedURI)
- decodeURIComponent(encodedURIComponent)
- encodeURI(uri)
- encodeURIComponent(uriComponent)
- escape(chaîne)
- unescape(chaîne)
Propriétés du constructeur
- Objet
- Fonction
- Tableau
- Tampon de tableau
- Chaîne
- Booléen
- Nombre
- DataView
- Date
- Promesse
- RegExp
- Carte
- WeakMap
- Set
- WeakSet
- SharedArrayBuffer
- Symbole
- Erreur
- Erreur d'évaluation
- RangeError
- Erreur de référence
- Erreur de syntaxe
- Erreur de type
- Erreur d'URIE
Autres propriétés
- Atomique
- Mathématiques
- JSON
- Reflect
- Proxy
L'objet Objet
Constructeur d'objet
Propriétés de la fonction
- getPrototypeOf(O)
- setPrototypeOf(O, P)
- getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptors(O)
- getOwnNames(O)
- getOwnPropertySymbols(O)
- assign(O [, Properties])
- create(O [, Properties])
- defineProperty(O, P, Attributs)
- defineProperties(O, Propriétés)
- entries(O)
- is(V1, V2)
- clés(O)
- valeurs(O)
- seal(O)
- isSealed(O)
- freeze(O)
- estCongelé(O)
- empêcherLesExtensions(O)
- isExtensible(O)
Prototype d'objet
Propriétés des fonctions
- toString()
- toLocaleString()
- valueOf()
- hasOwnProperty(V)
- isPrototypeOf(V)
- propertyIsEnumerable(V)
- __defineGetter__(P, F)
- __defineSetter__(P, F)
Objets de fonction
Prototype de fonction
Propriétés des fonctions
- toString()
- apply(thisArg, argArray)
- call(cetArg [, arg1 [, arg2, ...]])
- bind((thisArg [, arg1 [, arg2, ...]))
- [Symbol.hasInstance](O)
Objets du tableau
Prototype de tableau Objet
Fonction Propriétés
- toString()
- toLocaleString()
- concat([item1 [, item2 [, ...]])
- copyWithin([item1 [, item2 [, ...]]])
- entries()
- fill(élément [, index1 [, index2]])
- join(separator)
- find(callbackfn [, thisArg]) // ECMAScript 6 : Ajouté dans Qt 5.9
- findIndex(callbackfn [, thisArg]) // ECMAScript 6 : Ajouté dans Qt 5.9
- includes(item)
- keys()
- pop()
- push([item1 [, item2 [, ...]]])
- reverse()
- shift()
- slice(start, end)
- sort(comparefn)
- splice(start, deleteCount[, item1 [, item2 [, ...]]])
- unshift([item1 [, item2 [, ...]]])
- indexOf(searchElement [, fromIndex])
- lastIndexOf(searchElement [, fromIndex])
- every(callbackfn [, thisArg])
- some(callbackfn [, thisArg])
- forEach(callbackfn [, thisArg])
- map(callbackfn [, thisArg])
- filter(callbackfn [, thisArg])
- reduce(callbackfn [, initialValue])
- reduceRight(callbackfn [, initialValue])
- values()
- [Symbol.iterator]()
Objets de type chaîne de caractères
Prototype de chaîne Objet
Propriétés de la fonction
- toString()
- valueOf()
- charAt(pos)
- charCodeAt(pos)
- codePointAt(pos)
- concat([string1 [, string2 [, ...]]])
- endsWith(searchString [, endPosition ]) // ECMAScript 6 : Ajouté dans Qt 5.8
- includes(searchString [, position ]) // ECMAScript 6 : ajouté dans 5.8
- indexOf(chaîne de recherche ,position)
- lastIndexOf(chaîne de recherche, position)
- localeCompare(that)
- match(regexp)
- normalize()
- padEnd(longueur [, chaîne])
- padStart(length [, string])
- repeat(count) // ECMAScript 6 : ajouté dans Qt 5.9
- replace(searchValue, replaceValue)
- search(regexp)
- slice(start, end)
- split(séparateur, limite)
- startsWith(searchString [, position ]) // ECMAScript 6 : Ajouté dans Qt 5.8
- substr(start, length)
- substring(start, end)
- toLowerCase()
- toLocaleLowerCase()
- toUpperCase()
- toLocaleUpperCase()
- trim()
- [Symbol.iterator]()
De plus, le moteur QML ajoute les fonctions suivantes au prototype String:
Objets booléens
Prototype d'objet booléen
Fonction Propriétés
- toString()
- valueOf()
Objets de type Nombre
Objet de Prototype Nombre
Propriétés de la fonction
- toString(radix)
- toLocaleString()
- valueOf()
- toFixed(fractionDigits)
- toExponential(fractionDigits)
- toPrecision(précision)
De plus, le moteur QML ajoute les fonctions suivantes au prototype Number:
- fromLocaleString(locale, nombre)
- toLocaleCurrencyString(locale, symbole)
- toLocaleString(locale, format, précision)
L'objet nombre
Propriétés des valeurs
- NaN
- INFINI_NÉGATIF
- POSITIVE_INFINITY
- MAX_VALEUR
- MIN_VALEUR
- EPSILON // ECMAScript 6 : Ajouté dans Qt 5.8
- MAX_SAFE_INTEGER
- MIN_SAFE_INTEGER
Propriétés des fonctions
- isFinite(x) // ECMAScript 6 : Ajouté dans Qt 5.8
- isInteger(x)
- isSafeInteger(x)
- isNaN(x) // ECMAScript 6 : ajouté dans Qt 5.8
L'objet Math
Propriétés des valeurs
- E
- LN10
- LN2
- LOG2E
- LOG10E
- PI
- SQRT1_2
- SQRT2
Propriétés des fonctions
- abs(x)
- acos(x)
- acosh(x)
- asin(x)
- asinh(x)
- atan(x)
- atanh(x)
- atan2(y, x)
- cbrt(x)
- ceil(x)
- clz32(x)
- cos(x)
- cosh(x)
- exp(x)
- expm1(x)
- floor(x)
- fround(x)
- hypot(x, y)
- imul(x, y)
- log(x)
- log10(x)
- log1p(x)
- log2(x)
- max([valeur1 [, valeur2 [, ...]])
- min([valeur1 [, valeur2 [, ...]]))
- pow(x, y)
- aléatoire()
- round(x)
- sign(x) // ECMAScript 6 : ajouté dans Qt 5.8
- sin(x)
- sinh(x)
- sqrt(x)
- tan(x)
- tanh(x)
- trunc(x)
Objets de type date
Objet prototype de date
Propriétés de la fonction
- toString()
- toDateString()
- toTimeString()
- toLocaleString()
- toLocaleDateString()
- toLocaleTimeString()
- valueOf()
- getTime()
- getFullYear()
- getCFullYear()
- getMonth()
- getUTCMonth()
- getDate()
- getUTCDate()
- getDay()
- getUTCDay()
- getHours()
- getUTCHours()
- getMinutes()
- getUTCMinutes()
- getSeconds()
- getUTCSeconds()
- getMilliseconds()
- getCMillisecondes()
- getTimeZoneOffset()
- setTime(time)
- setMilliseconds(ms)
- setUTCMilliseconds(ms)
- setSeconds(sec [, ms])
- setUTCSeconds(sec [, ms])
- setMinutes(min [, sec [, ms]])
- setUTCMinutes(min [, sec [, ms]])
- setHours(hour [, min [, sec [, ms]])
- setUTCHours(heure [, min [, sec [, ms]])
- setDate(date)
- setUTCDate(date)
- setMonth(mois [, date])
- setUTCMonth(mois [, date])
- setYear(année)
- setFullYear(year [, month [, date]])
- setUTCFullYear(année [, mois [, date])
- toUTCString()
- toGMTString()
- toISOString()
- toJSON()
- [Symbol.toPrimitive](hint)
De plus, le moteur QML ajoute les fonctions suivantes au prototype Date:
- timeZoneUpdated()
- toLocaleDateString(locale, format)
- toLocaleString(locale, format)
- toLocaleTimeString(locale, format)
Objets RegExp
Objet prototype RegExp
Propriétés de la fonction
- exec(chaîne)
- test(chaîne)
- toString()
Objets d'erreur
Prototype d'erreur Objet
Valeur Propriétés
- nom
- message
Propriétés de la fonction
- toString()
L'objet JSON
Propriétés de la fonction
- parse(texte [, reviver])
- stringify(valeur [, replacer [, espace]])
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.