![]() ![]() | |
Flash Player 4。不鼓励在 Flash 5 中使用此函数及所有字符串函数。Macromedia 建议使用 String 类的方法以及 String.length 属性来执行相同的操作。
length(expression)length(variable)
expression 字符串。
variable 变量的名称。
指定字符串或变量名称的长度。
字符串函数;返回指定字符串或变量名称的长度。
下面的示例返回字符串 "Hello" 的值。
length("Hello");
结果为 5。
" "(字符串分隔符)、String 类、String.length
![]() ![]() | |