0
你能告訴我爲什麼兩行都打印出來a
?
trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(這打印出s
:
trace(substring("asd", 2, 1)); // == "s"
)Flash Lite 1.1子串問題
不1.X指數從1開始?
你能告訴我爲什麼兩行都打印出來a
?
trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(這打印出s
:
trace(substring("asd", 2, 1)); // == "s"
)Flash Lite 1.1子串問題
不1.X指數從1開始?
Availability Flash Player 4. This function has been deprecated in favor of String.substr . Description String function; extracts part of a string. This function is 1-based, whereas the String object methods are 0-based.