<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');
This Pen doesn't use any external CSS resources.