You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
747 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <!doctype html>
  2. <html lang="zh" gv-id="index">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="keywords" content="">
  6. <link rel="stylesheet" href="css/main.css">
  7. <script src="js/vue.js"></script>
  8. </head>
  9. <body>
  10. <div id="app">
  11. <div class="content">
  12. <my-title></my-title>
  13. <a v-on:click="click" gv-ignore>{{desc}}</a>
  14. <br>
  15. <br>
  16. <br>
  17. <a href="#" v-on:click="ssr" gv-ignore>{{a}}</a>
  18. </div>
  19. </div>
  20. </body>
  21. <script>
  22. new Vue({
  23. el: "#app",
  24. methods: {
  25. click: function () {
  26. alert("点击触发");
  27. },
  28. ssr: function () {
  29. location.href = "ssr.html?test"
  30. },
  31. }
  32. });
  33. </script>
  34. </html>