JavaScript オブジェクトと関数のリスト

このリファレンスには、Qt のJavaScript engine でサポートされているオブジェクト、関数、プロパティのリストが含まれています。詳細な説明については、ECMA-262仕様を参照してください。

グローバルオブジェクト

値のプロパティ

  • NaN
  • 無限大
  • 未定義

関数のプロパティ

  • eval(x)
  • parseInt(string, 基数)
  • parseFloat(string)
  • isNaN(数値)
  • isFinite(数値)
  • decodeURI(encodedURI)
  • decodeURIComponent(encodedURIComponent)
  • encodeURI(uri)
  • encodeURIComponent(uriComponent)
  • エスケープ(文字列)
  • unescape(string)

コンストラクタのプロパティ

  • オブジェクト
  • 関数
  • 配列
  • 配列バッファ
  • 文字列
  • ブール
  • 数値
  • データビュー
  • 日付
  • プロミス
  • RegExp
  • 地図
  • 弱いマップ
  • 集合
  • 弱いセット
  • 共有配列バッファ
  • シンボル
  • エラー
  • 評価エラー
  • 範囲エラー
  • 参照エラー
  • 構文エラー
  • 型エラー
  • URIエラー

その他のプロパティ

  • アトミック
  • 数学
  • JSON
  • リフレクト
  • プロキシ

オブジェクト

オブジェクトのコンストラクタ

関数のプロパティ

  • getPrototypeOf(O)
  • setPrototypeOf(O, P)
  • getOwnPropertyDescriptor(O, P)
  • getOwnPropertyDescriptors(O)
  • getOwnPropertyNames(O)
  • getOwnPropertySymbols(O)
  • assign(O [, Properties])
  • create(O [, Properties])
  • defineProperty(O, P, Attributes)
  • defineProperties(O, Properties)
  • entries(O)
  • is(V1, V2)
  • キー(O)
  • 値(O)
  • シール(O)
  • isSealed(O)
  • フリーズ(O)
  • isFrozen(O)
  • preventExtensions(O)
  • isExtensible(O)

オブジェクト・プロトタイプ

関数のプロパティ

  • toString()
  • toLocaleString()
  • valueOf()
  • hasOwnProperty(V)
  • isPrototypeOf(V)
  • propertyIsEnumerable(V)
  • 定義Getter__(P, F)
  • 定義セッター__(P, F)

関数オブジェクト

関数プロトタイプ

関数のプロパティ

  • toString()
  • apply(thisArg, argArray)
  • call(thisArg [, arg1 [, arg2, ...])
  • bind((thisArg [, arg1 [, arg2, ...]])
  • [シンボル.hasInstance](O)

配列オブジェクト

配列プロトタイプオブジェクト

関数のプロパティ

  • toString()
  • toLocaleString()
  • 連結([item1 [, item2 [, ...]])
  • copyWithin([item1 [, item2 [, ...]])
  • entries()
  • fill(item [, index1 [, index2]])
  • join(separator)
  • find(callbackfn [, thisArg]) // ECMAScript 6: Qt 5.9 で追加されました。
  • findIndex(callbackfn [, thisArg]) // ECMAScript 6: Qt 5.9 で追加されました。
  • include(item)
  • key()
  • 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])
  • 値()
  • [シンボル.イテレータ]()

文字列オブジェクト

文字列プロトタイプオブジェクト

関数のプロパティ

  • toString()
  • valueOf()
  • charAt(pos)
  • charCodeAt(pos)
  • codePointAt(pos)
  • concat([string1 [, string2 [, ...]])
  • endsWith(searchString [, endPosition ]) // ECMAScript 6: Qt 5.8 で追加。
  • includes(searchString [, position ]) // ECMAScript 6: 5.8 で追加。
  • indexOf(searchString ,position)
  • lastIndexOf(searchString, position)
  • ロケール比較(that)
  • match(regexp)
  • 正規化()
  • padEnd(length [, string])
  • padStart(length [, string])
  • repeat(count) // ECMAScript 6: Qt 5.9 で追加されました。
  • replace(searchValue, replaceValue)
  • search(正規表現)
  • slice(start, end)
  • split(separator, limit)
  • startsWith(searchString [, position ]) // ECMAScript 6: Qt 5.8 で追加。
  • substr(start, length)
  • 部分文字列(開始, 終了)
  • toLowerCase()
  • toLocaleLowerCase()
  • toUpperCase()
  • toLocaleUpperCase()
  • trim()
  • [シンボル.イテレータ]()

さらに、QMLエンジンはString プロトタイプに以下の関数を追加しています:

ブール型オブジェクト

ブール型プロトタイプオブジェクト

関数のプロパティ

  • toString()
  • valueOf()

数値オブジェクト

数値プロトタイプオブジェクト

関数のプロパティ

  • toString(基数)
  • toLocaleString()
  • valueOf()
  • toFixed(分数桁)
  • toExponential(fractionDigits)
  • toPrecision(precision)

さらに、QMLエンジンはNumber プロトタイプに以下の関数を追加します:

数値オブジェクト

値のプロパティ

  • NaN
  • 負の無限大
  • 正の無限大
  • MAX_VALUE
  • 最小値
  • EPSILON // ECMAScript 6: Qt 5.8 で追加されました。
  • 最大安全整数
  • min_safe_integer

関数のプロパティ

  • isFinite(x) // ECMAScript 6: Qt 5.8 で追加。
  • isInteger(x)
  • isSafeInteger(x)
  • isNaN(x) // ECMAScript 6: Qt 5.8 で追加。

Math オブジェクト

値のプロパティ

  • E
  • LN10
  • LN2
  • LOG2E
  • LOG10E
  • PI
  • SQRT1_2
  • SQRT2

関数の特性

  • 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([value1 [, value2 [, ...]])
  • min([value1 [, value2 [, ...]])
  • pow(x, y)
  • random()
  • round(x)
  • sign(x) // ECMAScript 6: Qt 5.8 で追加されました。
  • sin(x)
  • sinh(x)
  • sqrt(x)
  • tan(x)
  • tanh(x)
  • trunc(x)

日付オブジェクト

日付プロトタイプオブジェクト

関数のプロパティ

  • toString()
  • toDateString()
  • toTimeString()
  • toLocaleString()
  • toLocaleDateString()
  • toLocaleTimeString()
  • valueOf()
  • getTime()
  • getFullYear()
  • getUTCFullYear()
  • getMonth()
  • getUTCMonth()
  • getDate()
  • getUTCDate()
  • getDay()
  • getUTCDay()
  • getHours()
  • getUTCHours()
  • getMinutes()
  • getUTCMinutes()
  • getSeconds()
  • getUTCSeconds()
  • getMilliseconds()
  • getUTCMilliseconds()
  • getTimeZoneOffset()
  • setTime(時間)
  • setMilliseconds(ミリ秒)
  • setUTCMilliseconds(ms)
  • setSeconds(sec [, ms])
  • setUTCSeconds(sec [, ms])
  • setMinutes(min [, sec [, ms]])
  • setUTCMinutes(分 [, 秒 [, ms])
  • setHours(hour [, min [, sec [, ms]])
  • setUTCHours(時 [, 分 [, 秒 [, ms]])
  • setDate(日付)
  • setUTCDate(日付)
  • setMonth(月[, 日付])
  • setUTCMonth(月[, 日付])
  • setYear(年)
  • setFullYear(year [, month [, date]])
  • setUTCFullYear(年 [, 月 [, 日付 ])
  • toUTCString()
  • toGMTString()
  • toISOString()
  • toJSON()
  • [シンボル.toPrimitive](ヒント)

さらに、QMLエンジンはDate プロトタイプに以下の関数を追加します:

RegExpオブジェクト

RegExp プロトタイプオブジェクト

関数のプロパティ

  • exec(文字列)
  • test(文字列)
  • toString()

エラーオブジェクト

エラー・プロトタイプ・オブジェクト

値のプロパティ

  • 名前
  • メッセージ

関数のプロパティ

  • toString()

JSONオブジェクト

関数のプロパティ

  • parse(text [, reviver])
  • stringify(value [, replacer [, space]])

© 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.