12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
- <link rel="shortcut icon" href="<%= BASE_URL %>favicon.ico">
- <title>
- <%= VUE_APP_TITLE %>
- </title>
- </head>
- <body>
- <noscript>
- <strong>
- 请开启 JavaScript 功能来使用 <%= VUE_APP_TITLE %>。
- </strong>
- </noscript>
- <iframe id='IEIframe' style='display: none;' width="100%" height="100%" src="/static_supplier/ie.html"
- frameborder="0"></iframe>
- <div id="app">
- </div>
- </body>
- <script>
- function IEVersion() {
- var userAgent = navigator.userAgent;
- var isIE =
- userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;
- if (isIE) {
- return true;
- } else {
- return false;
- }
- }
-
- if (IEVersion()) {
- document.querySelector('#IEIframe').style.display = 'block'
- document.querySelector('#app').style.display = 'none'
- }
-
- if (window.HTMLElement) {
- if (Object.getOwnPropertyNames(HTMLElement.prototype).indexOf('dataset') === -1) {
- Object.defineProperty(HTMLElement.prototype, 'dataset', {
- get: function () {
- var attributes = this.attributes
- var name = []
- var value = []
- var obj = {}
- for (var i = 0; i < attributes.length; i++) {
- if (attributes[i].nodeName.slice(0, 5) === 'data-') {
-
- name.push(attributes[i].nodeName.slice(5));
-
- value.push(attributes[i].nodeValue);
- }
- }
- for (var j = 0; j < name.length; j++) {
- obj[name[j]] = value[j];
- }
- return obj
- }
- })
- }
- }
- </script>
- </html>
|