loading.html 871 B

12345678910111213141516171819202122232425262728293031323334
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <script src="esl.js"></script>
  5. <script src="config.js"></script>
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. </head>
  8. <body>
  9. <style>
  10. html, body, #main {
  11. width: 100%;
  12. height: 100%;
  13. margin: 0;
  14. }
  15. #main {
  16. background: #fff;
  17. }
  18. </style>
  19. <div id="main"></div>
  20. <script>
  21. require([
  22. 'echarts'
  23. ], function (echarts) {
  24. var chart = echarts.init(document.getElementById('main'));
  25. chart.showLoading({
  26. text: '暂无数据'
  27. });
  28. window.onresize = chart.resize;
  29. });
  30. </script>
  31. </body>
  32. </html>