Media
Awards
Questions and Answers
See all questions and answers >Pros & Cons
Video Reviews

Share





Share
ferrer.indexOf(domain) !== -1) { window.localStorage.setItem("storage_lang", current_lang); //console.log("非新窗口打开,有访问历史,存储语言种类") return; } //新窗口打开,存储语言与服务端不一致 if (storage_lang !== current_lang && Boolean(storage_lang)) { to_href = document.getElementsByClassName("wpml-ls-item-" + storage_lang)[0].getElementsByTagName("a")[0].href; //console.log("新窗口打开,存储语言与服务端不一致") if (to_href) { window.location.href = to_href; } return; } //新窗口打开,且没有存储记录 if (current_lang !== client_lang && !Boolean(storage_lang)) { window.localStorage.setItem("storage_lang", client_lang); to_href = document.getElementsByClassName("wpml-ls-item-" + client_lang)[0].getElementsByTagName("a")[0].href; //console.log("新窗口打开,且没有存储记录") if (to_href) { window.location.href = to_href; } return; } } redirect_to();
Latest Reviews
See all Reviews