ActionScript 2.0 语言参考 |
|
|
|
| ActionScript 语言元素 > 全局函数 > substring 函数 | |||
substring(string:String, index:Number, count:Number) : String
自 Flash Player 5 后"不推荐使用"。不推荐使用此函数,而推荐使用 String.substr()。
提取部分字符串。此函数是从 1 开始的,而 String 对象方法是从 0 开始的。
可用性:ActionScript 1.0、Flash Player 4
string:String ― 从中提取新字符串的字符串。
index:Number ― 要提取的第一个字符的编号。
count:Number ― 要在提取的字符串中包括的字符数,不包括索引字符。
String ― 已提取的子字符串。
|
|
|
|