質問

両方の行が印刷される理由を教えてください a?
trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(これ 印刷します s:
trace(substring("asd", 2, 1)); // == "s")

Flash Lite 1.xでは、インデックスは1で始まりますか?

役に立ちましたか?

解決

から抽出しますhttp://www.adobe.com/support/flash/action_scripts/actionsicript_dictionary/actionscript_dictionary701.html

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.
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top