location.origin兼容IE

if (window["context"] == undefined) {
if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}
window["context"] = location.origin+"/V6.0";
} if (!window.location.origin) {
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}
上一篇:iOS:GitHub上值得关注的iOS开源项目


下一篇:vbox安装mac os x