parent
cd228d507d
commit
a664651865
@ -0,0 +1,3 @@
|
||||
{
|
||||
"lockfileVersion": 1
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Share</title>
|
||||
<script src="./vue.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<button @click="cl">{{ message }}</button>
|
||||
<p>Count is: {{ count }}</p>
|
||||
</div>
|
||||
<script>
|
||||
const { createApp, ref } = Vue
|
||||
const app = createApp({
|
||||
setup(){
|
||||
const message = ref('Hello Vue!')
|
||||
let count = ref(1)
|
||||
const cl = function(){
|
||||
count.value ++
|
||||
}
|
||||
return {
|
||||
message,
|
||||
count,
|
||||
cl
|
||||
}
|
||||
}
|
||||
})
|
||||
app.mount('#app')
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue