Flash Lite 1.x ActionScript 语言参考 |
|
|
|
| Flash Lite 全局函数 > mbsubstring() | |||
Flash Lite 1.0。
mbsubstring(value, index, count)
value 要从其中提取新的多字节字符串的多字节字符串。
index 要提取的第一个字符的编号。
count 要包含在所提取字符串中的字符的数目,其中不包括 index 处的字符。
字符串函数;从多字节字符串中提取一个新的多字节字符串。
以下示例从 myString 变量所包含的字符串中提取新的多字节字符串:
myString = mbchr(36) add mbchr(49) add mbchr(50) add mbchr(48); trace (mbsubstring(myString, 0, 2)); // 输出:$1
|
|
|
|