15 lines
195 B
Vue
15 lines
195 B
Vue
<script setup>
|
|
import { ref } from 'vue';
|
|
|
|
const a = ref("hello world")
|
|
|
|
function change(){
|
|
a.value = "lsp"
|
|
}
|
|
</script>
|
|
|
|
|
|
<template>
|
|
{{ a }}
|
|
<button @click="change">测试</button>
|
|
</template> |