mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
9 lines
355 B
Markdown
9 lines
355 B
Markdown
Globals module for defining functions part of the global context - you need only to call *require* for this module and all globals will be registered. For example:
|
|
```js
|
|
require("globals");
|
|
|
|
setTimeout(function(){ console.log("Test"); }, 2000);
|
|
|
|
```
|
|
|
|
Global functions/objects are: setTimeout, clearTimeout, setInterval, clearInterval and console. |