var hostname= location.hostname; // ie兼容性有问题,这里不能使用includes优化 if(["console-legacy.huilianyi.com", "ebiemstestpc.ebchina.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"; }