Vue.js

CDN版 Vue.js クイックスタート テンプレート

index.html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="app.css" />
  </head>
  <body>
    <div id="app">
      <p>{{ message }}</p>
      <button @click="handleStart">start</button>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.0"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script type="text/javascript" src="app.js"></script>
  </body>
</html>
app.js
new Vue({
  el: "#app",
  data() {
    return {
      message: "Hello"
    };
  },
  methods: {
    handleStart() {
      this.message = "handleStart"
    }
  },
  mounted() {
    console.log("Mounted.")
  }
});

serve

Install
$ npm i -g serve
Run
$ serve .