| Property | Defined By | ||
|---|---|---|---|
| basePath : String [static] 基础路径。 | URL | ||
| customFormat : Function [static] 自定义url格式化。例如: customFormat = function(url:String):String{} | URL | ||
| path : String [read-only] 地址的路径。 | URL | ||
| rootPath : String [static] 根路径。 | URL | ||
| url : String [read-only] 格式化后的地址。 | URL | ||
| version : Object [static] 版本号。 | URL | ||
| Method | Defined By | ||
|---|---|---|---|
URL(url:String) 创建一个新的 URL 实例。 | URL | ||
formatURL(url:String, base:String = null):String [static]
格式化指定的地址并 返回。
| URL | ||
getFileName(url:String):String [static]
获取指定 URL 的文件名。
| URL | ||
| basePath | property |
public static var basePath:String基础路径。
| customFormat | property |
public static var customFormat:Function自定义url格式化。例如: customFormat = function(url:String):String{}
| path | property |
path:String [read-only] 地址的路径。
public function get path():String| rootPath | property |
public static var rootPath:String根路径。
| url | property |
url:String [read-only] 格式化后的地址。
public function get url():String| version | property |
public static var version:Object版本号。
| URL | () | Constructor |
public function URL(url:String)创建一个新的 URL 实例。
url:String |
| formatURL | () | method |
public static function formatURL(url:String, base:String = null):String格式化指定的地址并 返回。
Parameters
url:String — 地址。
| |
base:String (default = null) — 路径。
|
String — 格式化处理后的地址。
|
| getFileName | () | method |
public static function getFileName(url:String):String获取指定 URL 的文件名。
Parameters
url:String — 地址。
|
String — url 的文件名。
|