-
Notifications
You must be signed in to change notification settings - Fork 135
moxie.core.utils.Url
Davit Barbakadze edited this page Aug 5, 2017
·
2 revisions
Important! This page is auto-generated from the comments in the source files. All changes will be overwritten! If you are looking to contribute, modify the comment in the corresponding source file instead.
-
Methods
-
parseUrl(url)
static
-
resolveUrl(url)
static
-
hasSameOrigin(url)
static
-
parseUrl(url)
parseUrl(url) static
Parse url into separate components and fill in absent parts with parts from current url, based on https://raw.github.com/kvz/phpjs/master/functions/url/parse_url.js
Arguments
-
url
String
Url to parse (defaults to empty string if undefined)
resolveUrl(url) static
Resolve url - among other things will turn relative url to absolute
Arguments
-
url
String|Object
Either absolute or relative, or a result of parseUrl call
hasSameOrigin(url) static
Check if specified url has the same origin as the current document
Arguments
-
url
String|Object