js全局函数
在编写非浏览器的js代码时,全局函数几乎是js的全部原生功能。
http://supportforums.blackberry.com/t5/Native-Development/Doing-all-of-JSON-from-QML/td-p/1902577
论坛下列出了cascades下js的所有全局函数对象
- Math
- NaN
- undefined
- Infinity
- JSON
- Object
- Function
- Array
- Boolean
- String
- Number
- Date
- RegExp
- Error
- EvalError
- RangeError
- ReferenceError
- SyntaxError
- TypeError
- URIError
- eval
- parseInt
- parseFloat
- isNaN
- isFinite
- escape
- unescape
- decodeURI
- decodeURIComponent
- encodeURI
- encodeURIComponent
- print
- gc
- Qt
- XMLHttpRequest
- DOMException
- openDatabaseSync
- SQLException
- console
- qsTranslate
- QT_TRANSLATE_NOOP
- qsTr
- QT_TR_NOOP
- qsTrId
- QT_TRID_NOOP