-
console.log(...)
-
console.warn(...)
-
console.error(...)
-
fetch(url:string [, options:object]): Response
- Fetch APISciter's extras:
options.sync: boolean
- when set to true fetch performs synchronous data retrieval. Synchronous fetch is useful to get local data - local file or resource content.options.downloadProgress: function(fetched:integer, total:integer)
- callback function to be called on download progress. Note: total argument can be zero if server does not provide "Content-Length" info.- fetch API uses either HTTP client to get remote files or OS API for local files. In the first case return values are HTTP response codes, while in the second case error codes are coming from OS.
-
The function does formatting of arguments using C-style printf conventions.
Returns formatted string.
In Sciter list of standard formatting types is extended by these two:
%v
- takes argument and prints it asJSON.stringify(arg)
;%V
- takes argument and prints it asJSON.stringify(arg, null, " ")
;
-
Takes input string and parses it according the format specification using C-style scanf conventions. Returns list (array) of successfully parsed values.
-
"module" version of stock
eval()
function - evaluates the text as a module body.If the url is provided it is used as a base URL for resolving relative paths in
import ... from "relpath"
statements inside.The function returns module's exported data as an object.