ExtJS learning ----------- Ext. String, ExtJS extension of String in javascript, extjs Extension

Source: Internet
Author: User

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
  • String

    Converted string

(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
  • String

    Cropped string

(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
  • String

    Converted string

(5) urlAppend

UrlAppend (String url, String string): String

Append the content to the query string of the URL and determine to place '? 'Or.

Parameters
  • Url: String

    To append to this URL.

  • String: String

    Content of the URL to be added.

Returns
  • String

    The generated URL.




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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.