| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="theme-color" content="#000000" />
- <meta name="description" content="Web site created using create-react-app" />
- <meta
- name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
- />
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
- <!-- <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> -->
- <script src="./myData/data.js"></script>
- <title>楚国第一玉剑数字展</title>
- </head>
- <body>
- <noscript>You need to enable JavaScript to run this app.</noscript>
- <div id="root"></div>
- </body>
- <!-- <script>
- window.onload = function () {
- var script = document.createElement('script')
- script.src = 'https://cdn.bootcss.com/eruda/1.5.4/eruda.min.js'
- document.body.appendChild(script)
- script.onload = function () {
- eruda.init()
- }
- }
- </script> -->
- <script>
- // -------------增加访问量--------------------
- // 初始接口域名
- const baseUrl = 'https://sit-cctvyunzhan.4dage.com'
- const requestBody = {
- num: 'CGYJ_CODE',
- type: 'visit'
- };
-
- fetch(`${baseUrl}/api/visit/add`, {
- method: 'POST',
- body: JSON.stringify(requestBody),
- headers: {
- 'Content-Type': 'application/json'
- }
- })
- .then(response => response.json())
- .then(data => console.log('访问量增加'))
- .catch(error => console.error(error));
- </script>
- </html>
|