First VueJS code
This commit is contained in:
commit
5cc5a74cb9
32
devA/1_hello_vue/index.html
Normal file
32
devA/1_hello_vue/index.html
Normal file
@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>Hello Vue</title>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
{{ message }}
|
||||
<button @click="changeMessage">Change the message!</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
new Vue({
|
||||
el: "#app",
|
||||
data: {
|
||||
message: "Hello Vue!",
|
||||
},
|
||||
methods: {
|
||||
changeMessage() {
|
||||
this.message = "Hello World!";
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
12
vue.ude/index.html
Normal file
12
vue.ude/index.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
</head>
|
||||
<body>
|
||||
<header></header>
|
||||
<main></main>
|
||||
<footer></footer>
|
||||
</body>
|
||||
</html>
|
0
vue.ude/script.js
Normal file
0
vue.ude/script.js
Normal file
0
vue.ude/style.css
Normal file
0
vue.ude/style.css
Normal file
Loading…
Reference in New Issue
Block a user