자바스크립트 객체 및 함수 목록

이 참조에는 Qt의 JavaScript engine 에서 지원하는 객체, 함수 및 프로퍼티 목록이 포함되어 있습니다. 자세한 설명은 ECMA-262 사양을 참조하십시오.

전역 객체

값 속성

  • NaN
  • 무한대
  • 정의되지 않음

함수 프로퍼티

  • eval(x)
  • parseInt(문자열, 기수)
  • parseFloat(문자열)
  • isNaN(숫자)
  • isFinite(숫자)
  • decodeURI(encodedURI)
  • decodeURIComponent(encodedURIComponent)
  • encodeURI(uri)
  • encodeURIComponent(uriComponent)
  • 이스케이프(문자열)
  • 이스케이프 해제(문자열)

생성자 속성

  • Object
  • 함수
  • Array
  • ArrayBuffer
  • String
  • 부울
  • 숫자
  • DataView
  • Date
  • 약속
  • RegExp
  • Map
  • WeakMap
  • Set
  • WeakSet
  • 공유 배열 버퍼
  • Symbol
  • Error
  • EvalError
  • RangeError
  • ReferenceError
  • 구문 에러
  • TypeError
  • URIError

기타 프로퍼티

  • Atomics
  • Math
  • JSON
  • Reflect
  • Proxy

객체 객체

객체 생성자

함수 프로퍼티

  • 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)
  • keys(O)
  • values(O)
  • seal(O)
  • isSealed(O)
  • freeze(O)
  • isFrozen(O)
  • preventExtensions(O)
  • isExtensible(O)

오브젝트 프로토타입

함수 프로퍼티

  • toString()
  • toLocaleString()
  • valueOf()
  • hasOwnProperty(V)
  • isPrototypeOf(V)
  • propertyIsEnumerable(V)
  • __defineGetter__(P, F)
  • __defineSetter__(P, F)

함수 객체

함수 프로토타입

함수 프로퍼티

  • toString()
  • apply(thisArg, argArray)
  • call(thisArg [, arg1 [, arg2, ...]])
  • bind((thisArg [, arg1 [, arg2, ...]])
  • [Symbol.hasInstance](O)

배열 객체

배열 프로토타입 객체

함수 속성

  • toString()
  • toLocaleString()
  • concat([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에 추가되었습니다.
  • 포함(항목)
  • keys()
  • pop()
  • push([item1 [, item2 [, ...]]])
  • reverse()
  • shift()
  • 슬라이스(시작, 끝)
  • 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]()

문자열 객체

문자열 프로토타입 객체

함수 속성

  • 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)
  • localeCompare(that)
  • match(regexp)
  • normalize()
  • padEnd(길이 [, 문자열])
  • padStart(length [, string])
  • repeat(count) // ECMAScript 6: Qt 5.9에 추가되었습니다.
  • replace(searchValue, replaceValue)
  • search(regexp)
  • slice(start, end)
  • split(separator, limit)
  • startsWith(searchString [, position ]) // ECMAScript 6: Qt 5.8에 추가됨
  • substr(start, length)
  • substring(start, end)
  • toLowerCase()
  • toLocaleLowerCase()
  • toUpperCase()
  • toLocaleUpperCase()
  • trim()
  • [Symbol.iterator]()

또한 QML 엔진은 String 프로토타입에 다음 함수를 추가합니다:

부울 객체

부울 프로토타입 객체

함수 속성

  • toString()
  • valueOf()

숫자 객체

숫자 프로토타입 객체

함수 프로퍼티

  • toString(기수)
  • toLocaleString()
  • valueOf()
  • toFixed(fractionDigits)
  • to지수(분수 자릿수)
  • toPrecision(정밀도)

또한 QML 엔진은 Number 프로토타입에 다음 함수를 추가합니다:

숫자 객체

값 프로퍼티

  • NaN
  • negative_infinity
  • 양수_인피니티
  • MAX_VALUE
  • MIN_VALUE
  • EPSILON // ECMAScript 6: Qt 5.8에 추가됨
  • MAX_SAFE_INTEGER
  • MIN_SAFE_INTEGER

함수 속성

  • isFinite(x) // ECMAScript 6: Qt 5.8에 추가되었습니다.
  • isInteger(x)
  • isSafeInteger(x)
  • isNaN(x) // ECMAScript 6: Qt 5.8에 추가되었습니다.

수학 객체

값 프로퍼티

  • 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(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(hour [, min [, sec [, ms]]])
  • setDate(날짜)
  • setUTCDate(날짜)
  • setMonth(month [, date])
  • setUTCMonth(month [, date])
  • setYear(year)
  • setFullYear(year [, month [, date]])
  • setUTCFullYear(년 [, 월 [, 날짜]])
  • toUTCString()
  • toGMTString()
  • toISOString()
  • toJSON()
  • [Symbol.toPrimitive](힌트)

또한 QML 엔진은 Date 프로토타입에 다음 함수를 추가합니다:

RegExp 개체

RegExp 프로토타입 객체

함수 프로퍼티

  • exec(문자열)
  • test(문자열)
  • toString()

에러 오브젝트

에러 프로토타입 오브젝트

값 프로퍼티

  • name
  • 메시지

함수 속성

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