Qt:Документация 4.3.2/ecmascript

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] ECMAScript Reference

This reference contains a list of objects, functions and properties supported by QtScript.


[править] The Global Object

[править] Value Свойства

  • NaN
  • Infinity
  • undefined
  • Math

[править] Function Свойства

  • eval(x)
  • parseInt(string, radix)
  • parseFloat(string)
  • isNaN(number)
  • isFinite(number)
  • decodeURI(encodedURI)
  • decodeURIComponent(encodedURIComponent)
  • encodeURI(uri)
  • encodeURIComponent(uriComponent)

[править] Constructor Свойства

  • Object
  • Function
  • Array
  • String
  • Boolean
  • Number
  • Date
  • RegExp
  • Error
  • EvalError
  • RangeError
  • ReferenceError
  • SyntaxError
  • TypeError
  • URIError


[править] Object Objects

[править] Object Prototype Object

  • toString()
  • toLocaleString()
  • valueOf()
  • hasOwnProperty(V)
  • isPrototypeOf(V)
  • propertyIsEnumerable(V)


[править] Function Objects

[править] Function Prototype Object

[править] Function Свойства
  • toString()
  • apply(thisArg, argArray)
  • call(thisArg [, arg1 [, arg2, ...]])


[править] Array Objects

[править] Array Prototype Object

[править] Function Свойства
  • toString()
  • toLocaleString()
  • concat([item1 [, item2 [, ...]] ] )
  • join(separator)
  • pop()
  • push([item1 [, item2 [, ...]] ] )
  • reverse()
  • shift()
  • slice(start, end)
  • sort(comparefn)
  • splice(start, deleteCount[, item1 [, item2 [, ...]] ] )
  • unshift([item1 [, item2 [, ...]] ] )


[править] String Objects

[править] String Prototype Object

[править] Function Свойства
  • toString()
  • valueOf()
  • charAt(pos)
  • charCodeAt(pos)
  • concat([string1 [, string2 [, ...]] ] )
  • indexOf(searchString ,position)
  • lastIndexOf(searchString, position)
  • localeCompare(that)
  • match(regexp)
  • replace(searchValue, replaceValue)
  • search(regexp)
  • slice(start, end)
  • split(separator, limit)
  • substring(start, end)
  • toLowerCase()
  • toLocaleLowerCase()
  • toUpperCase()
  • toLocaleUpperCase()


[править] Boolean Objects

[править] Boolean Prototype Object

[править] Function Свойства
  • toString()
  • valueOf()


[править] Number Objects

[править] Number Prototype Object

[править] Function Свойства
  • toString(radix)
  • toLocaleString()
  • toFixed(fractionDigits)
  • toExponential(fractionDigits)
  • toPrecision(precision)


[править] The Math Object

[править] Value Свойства

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


[править] Function Свойства

  • abs(x)
  • acos(x)
  • asin(x)
  • atan(x)
  • atan2(y, x)
  • ceil(x)
  • cos(x)
  • exp(x)
  • floor(x)
  • log(x)
  • max([value1 [, value2 [, ...]] ] )
  • min([value1 [, value2 [, ...]] ] )
  • pow(x, y)
  • random()
  • round(x)
  • sin(x)
  • sqrt(x)
  • tan(x)


[править] Date Objects

[править] Date Prototype Object

[править] Function Свойства
  • 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(date)
  • setUTCDate(date)
  • setMonth(month [, date])
  • setUTCMonth(month [, date])
  • setFullYear(year [, month [, date]])
  • setUTCFullYear(year [, month [, date]])
  • toUTCString()


[править] RegExp Objects

[править] RegExp Prototype Object

[править] Function Свойства
  • exec(string)
  • test(string)
  • toString()


[править] Error Objects

[править] Error Prototype Object

[править] Value Свойства
  • name
  • message


[править] Function Свойства
  • toString()

Copyright © 2007 Trolltech Trademarks
Qt 4.3.2