Flex 将字符串编码为有效的 URI(统一资源标识符)

直接使用顶级方法:

encodeURI(uri:String):String

相关方法:

Boolean(expression:Object):Boolean

将 expression 参数转换为布尔值并返回该值。

Top Level

decodeURI(uri:String):String

将已编码的 URI 解码为字符串。

Top Level

decodeURIComponent(uri:String):String

将已编码的 URI 组件解码为字符串。

Top Level

encodeURI(uri:String):String

将字符串编码为有效的 URI(统一资源标识符)。

Top Level

encodeURIComponent(uri:String):String

将字符串编码为有效的 URI 组件。

Pasted from <http://livedocs.adobe.com/flex/3_cn/langref/package.html>

This entry was posted in ActionScript and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>