Flash Lite 1.1 子串问题
你能告诉我为什么这两行都打印出a
吗?trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(this 打印出 s
:trace(substring("asd", 2, 1)); // == "s"
)
在 Flash Lite 1.x 中索引是否以 1 开头?
Could you tell me why both lines print out a
?trace(substring("asd", 0, 1)); // == "a"
trace(substring("asd", 1, 1)); // == "a"
(this prints out s
:trace(substring("asd", 2, 1)); // == "s"
)
Does in Flash Lite 1.x the index start with 1?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
摘自
http://www.adobe.com/support/flash/action_scripts/ actionscript_dictionary/actionscript_dictionary701.html
Extract from
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary701.html