<div id="app">
  <a href="https://israynotarray.com/" @click="sayHi">點我</a>
</div>
const { createApp, ref } = Vue;

const app = createApp({
  methods: {
    sayHi() {
      window.alert('Hello Ray.');
    }
  }
});

app.mount('#app');

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://unpkg.com/vue@3