123456789101112131415161718192021 |
- // 判断浏览器是否为IE
- const ua = window.navigator.userAgent
- const isIE = ua.indexOf('MSIE') !== -1 || ua.indexOf('Trident/') !== -1
- // 如果浏览器为IE,则提示用户更新浏览器
- if (isIE) {
- // alert('您的浏览器版本过低,请更新浏览器!')
- window.unsupportedBrowser = true
- document.getElementById('app').innerHTML = '<h1 style="width:960px;margin:200px auto;font-size:32px;font-weight:700;">您的浏览器版本过低,请升级浏览器以获取更好的体验!<br>推荐使用 <a href="https://www.microsoft.com/zh-cn/edge" style="color:blue">Microsoft Edge</a> 或者 <a href="https://www.google.com/chrome" style="color:blue">Google Chrome</a> 浏览器。<br>如果您使用的是双核浏览器,请切换到极速模式访问</h1>'
- }
- window.GLOBAL_CONFIG = {
- web_pc: 'https://myxjyszptxweb.bozedu.net/',
- origin: window.location.origin,
- api: 'https://openapi.bozedu.net/',
- oss: 'https://openapi.bozedu.net/',
- uc: 'https://uc.bozedu.net/',
- myxjyszptx: 'https://myxjyszptxapi.bozedu.net/',
- }
|