根据浏览器语言显示不同页面

        <script>
          if(navigator.appName == 'Netscape')
                var language = navigator.language;
            else
                var language = navigator.browserLanguage;
            if(language.indexOf('en') > -1) document.location.href = 'EnterpriseCloudEN.html';
            else if(language.indexOf('zh') > -1) document.location.href = 'EnterpriseCloud.html';
            else
                document.location.href = 'EnterpriseCloudEN.html';
        </script>

猜你喜欢

转载自www.cnblogs.com/Harold-Hua/p/9106535.html
今日推荐