パッケージ: | Global |
定義ファイル: | Ext.js, Ext-more.js |
クラス: | String |
継承元: | Object |
メソッド | 定義クラス | |
---|---|---|
escape(
String string
)
:
String<static>
'と\をエスケープします。URLに日本語などを含んだ場合にエスケープする際と同様です。 <static>
Escapes the passed string for ' and \ <static>
'と\をエスケープします。URLに日本語などを含んだ場合にエスケープする際と同様です。 <static>
Escapes the passed string for ' and \ パラメータ:
| String | |
format(
String string, String value1, String value2
)
:
String<static>
{0},{1}のような形式で文字列を埋め込むことができます。
使用方法:
<static>
Allows you to define a tokenized string and pass an arbitrary number of arguments to replace the ... <static>
{0},{1}のような形式で文字列を埋め込むことができます。 使用方法:
<static>
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:
パラメータ:
| String | |
leftPad(
String string, Number size, [String char]
)
:
String<static>
文字列の左に指定した長さ分指定の文字を埋めます。
使用方法:
<static>
Pads the left side of a string with a specified character. This is especially useful for normaliz... <static>
文字列の左に指定した長さ分指定の文字を埋めます。 使用方法:
<static>
Pads the left side of a string with a specified character. This is especially useful for normalizing number and date strings. Example usage:
パラメータ:
| String | |
toggle(
String value, String other
)
:
String交互に文字列を表示するユーティリティです。戻り値として返却するだけで、現在の文字列を変更すること... Utility function that allows you to easily switch a string between two alternating values. The pa... 交互に文字列を表示するユーティリティです。戻り値として返却するだけで、現在の文字列を変更することはありません。 使用方法:
Utility function that allows you to easily switch a string between two alternating values. The passed value is compared to the current string, and if they are equal, the other value that was passed in is returned. If they are already different, the first value passed in is returned. Note that this method returns the new value but does not change the current string.
パラメータ:
| String | |
trim()
:
String 文字列の両サイドのホワイトスペースを除去します。
使用方法:
Trims whitespace from either end of a string, leaving spaces within the string intact. Example:
文字列の両サイドのホワイトスペースを除去します。 使用方法:
Trims whitespace from either end of a string, leaving spaces within the string intact. Example:
戻り値:
| String |