var hostname= location.hostname; // ie兼容性有问题,这里不能使用includes优化 if(["ebiemstestpc.ebchina.com", "ebiems.ebchina.com", "luq.huilianyi.com"].indexOf(hostname) !== -1){ window.useCDN= false; window.miscPublicPath = "/static"; window.static2PublicPath = "/assets"; window.img1PublicPath = "/images"; }else if(["console-legacy.huilianyi.com"].indexOf(hostname) !== -1){ window.useCDN= false; window.miscPublicPath = "/heliosmisc"; window.static2PublicPath = "/heliosstatic2"; window.img1PublicPath = "/heliosimg1"; }else{ window.useCDN= true; window.miscPublicPath= "https://misc.huilianyi.com"; window.static2PublicPath= "https://static2.huilianyi.com"; window.img1PublicPath= "https://img1.huilianyi.com"; }