code: function (checkUrl) {
  		var url;
  		checkUrl = this.convAbsUrl(checkUrl);
  		if (location.origin && window.URL) {
  			try {
  				url = new URL(checkUrl);
  				return location.origin === url.origin;
  			} catch(e) {}
  		}
  		url = document.createElement('a');
  		url.href = checkUrl;
  		return location.protocol === url.protocol && location.host === url.host && location.port && url.port;
  	}
docs: Is same origin to current site
  
  @param  String  check url
  @return Boolean