123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!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, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
- <link rel="shortcut icon" href="<%= BASE_URL %>favicon.ico">
-
- <title>CRMEB</title>
- </head>
- <body>
- <noscript>
- <strong>
- 请开启 JavaScript 功能来使用 。
- </strong>
- </noscript>
- <div id="app">
-
- </div>
- </body>
- <script>
-
-
-
-
- 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>
|