Returns fragment of the URI.
返回URI的标签部分。
Sets fragment of the URI.
设置URI的标签部分。
Returns host of the URI.
返回URI的主机。
Sets host of the URI.
设置URI的主机部分。
Returns true if the URL has host.
如果有主机地址则是绝对地址,否则是相对地址。
Returns password of the URI.
返回URI的密码。
Sets password of the URI.
设置URI的密码。
Returns path of the URI.
返回URI的路径字符串。
Sets path of the URI.
设置URI的路径部分。
Returns port of the URI.
返回URI的端口。
Sets port of the URI.
设置URI的端口。
Returns value of a query key.
返回某个键的值。
Sets value of a query key.
设置某个键的值。
Returns json data of all query keys.
返回所有的键值JSON。
Sets values of input query keys.
设置输入的键值。
Returns query string of the URI.
返回URI的查询字符串。
Sets query string of the URI.
设置URI的查询字符串。
Returns scheme of the URI.
返回URI的协议。
Sets scheme of the URI.
设置URI的协议。
Returns an absolute URI string.
返回绝对地址。
Returns a relative URI string.
返回相对地址。
Returns absolute of relative string of the URI according to whether it has host.
依据其是否有主机地址,返回绝对或相对地址
Returns user name of the URI.
返回URI的用户名。
Sets user name of the URI.
设置URI的用户名。
Returns username+password of the URI.
The format is: {username:password}.
返回用户信息,格式如下:{username:password}。
Returns the absolute dir of current URL.
返回当前URL的绝对目录。
Convert an URL to absolute URL according to the current page address.
无论是相对地址还是绝对地址,都按照当前页面地址转换为绝对地址。
URI Class
URI specs: scheme://username:password@host:port/path?query#fragment
Example: http://jsdk:1234@github.com:8080/classes/URI?k1=v1#frag1