javascript String substr( )
@Feb. 23, 2010, 11:14 a.m.
substr( ) | Firefox/Netscape/NN 4 IE 4 ECMA n/a |
substr(startPositionIndex [, length]) |
|
Returns a copy of an extract from the current string. The extract begins at the zero-based index position of the current string as specified by the first parameter of the method. If no other parameter is provided, the extract continues to the end of the main string. The second parameter can specify an integer of the number of characters to be extracted from the main string. In contrast, the substring( ) method's parameters point to the start and end position index values of the main string. |
|
Parameters | |
|
|
Returned Value | |
A string. |
Note for negative position:
Firefox:
Begin from end. "abcdefg".substr(-2) = "fg"
IE6 7 8:
Treat as 0. "abcdefg".substr(-2) = substr(0) = "abcdefg"
Use javascript String slice( ) instead.
Permanent URL:
http://javascript.gakaa.com/string-substr-4-0-5-.aspx
purchase lipitor for sale <a href="https://lipiws.top/">atorvastatin 20mg brand</a> atorvastatin 40mg ca
Lhpjmb
- 10 months
purchase atorvastatin for sale <a href="https://lipiws.top/">buy lipitor no prescription</a> order atorvastatin 20mg pill
Hezeqa
- 10 months
Powered by Linode.