Class String.format
Package: | String |
Defined In: |
String.js.
|
Class: | format |
Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the tokens. Each
token must be unique, and must increment in the format {0}, {1}, etc. Example usage:
var cls = 'my-class', text = 'Some text';
var s = String.format('{1}
', cls, text);
// s now contains the string: 'Some text
'
Config Options - Has None
Public Properties - Has None
Public Methods - Has None