sample.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html lang="en" data-theme="dark">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>sample page</title>
  7. <link rel="stylesheet" type="text/css" href="../style/sample.css"/>
  8. </head>
  9. <style>
  10. [v-cloak]{
  11. display: none;
  12. }
  13. </style>
  14. <script src="../utils/sample.js" type="module"></script>
  15. <body>
  16. <h3>sample</h3>
  17. <h1>Hello, World!</h1>
  18. <p>this is a sample about <a href="#">boujeeshilry.com!</a></p>
  19. <div id="app"></div>
  20. <canvas id="canvas"></canvas>
  21. <hr/>
  22. <pre>main link : <a href="#">boujeeshilry.com!</a></pre>
  23. <h2>用户列表</h2>
  24. <table>
  25. <th>index</th><th>usename</th><th>nickname</th><th>password</th><th>description</th><th>operation</th>
  26. <tr v-for="(value,key,index) in books">
  27. <td>{{key}}</td>
  28. <td>{{value.usename}}</td>
  29. <td>{{value.nickname}}</td>
  30. <td>{{value.password}}</td>
  31. <td>{{value.description}}</td>
  32. </tr>
  33. </table>
  34. <h3>connect to tomcat</h3>
  35. <button @click="interface_web()">get userinfo</button>
  36. <br/>
  37. </body>
  38. </html>