Extjs commonly used functions introduction :
Ext.util.Format categories:
Ext.util.Format.capitalize (testStr); // the first letter of the first string of the capital! ";
Ext.util.Format.ellipsis (testStr, 9); // string will then taken a total length of 9, but the last three characters represented but the whole ...
Ext.util.Format.uppercase (testStr); // convert the string to uppercase!
Ext.util.Format.lowercase (uppercaseResult); // convert the string to lowercase!
Ext.util.Format.substr (testStr, 5,9); // the specified string interception new string length specified position!
Ext.util.Format.usMoney ( "1000"); // string or numeric string is converted into dollars!
Ext.util.Format.trim ( "1000"); // remove space around the string! "
Ext.util.Format.fileSize ( "1024"); // converts the representative value to a string of bytes of data representing the file size, such as 1024 is converted into 1kb