ExtJS learning ----------- Ext. String, ExtJS extension of String in javascript, extjs Extension
For ExtJS String extension in javascript, you can refer to its help documentation, Documentation: http://download.csdn.net/detail/z1137730824/7748893
The following describes some of the methods:
(1) capitalize
Capitalize (String string): String
Returns a string of uppercase letters.
Parameters
- String: String
String to be converted
Returns
(2) ellipsis
Ellipsis (String value, Number length, Boolean word): String
Crop a string larger than the specified length and add the ellipsis ('...').
Parameters
- Value: String
String to be cropped
- Length: Number
Maximum length allowed for Cropping
- Word: Boolean
If it is true, an attempt is made to find a common word character.
(3) trim
Trim (String string): String
Crop the white spaces on both sides of the string and keep the white spaces in the middle. For example: @ example
Var s = 'foo bar'; alert ('-' + s + '-'); // print "-foo bar-" alert ('-' + Ext. string. trim (s) + '-'); // print "-foo bar -"
Parameters
- String: String
String to be cropped
Returns
(4) uncapitalize
Uncapitalize (String string): String
Returns a string with the first letter in the string being a lowercase letter.
Parameters
- String: String
String to be converted
Returns
(5) urlAppend
UrlAppend (String url, String string): String
Append the content to the query string of the URL and determine to place '? 'Or.
Parameters
Returns
Call extjs in javascript
Hi.baidu.com/ext_js
I think you should be very satisfied with this.
Ext. Msg. show ("...");
What is ExtJS? How to learn
I will give you a simple tutorial on getting started. ExtJs is a framework written in js. There are a lot of discussions on it on the Internet.
For more information, see
Onlyaa.com/..2.html