Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d79344 commit 28f6c58Copy full SHA for 28f6c58
qibu-1/demo-1-04.html
@@ -0,0 +1,27 @@
1
+<!DOCTYPE html>
2
+<html>
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <title>处理用户输入</title>
6
+ <script src="../js/vue.js"></script>
7
+ </head>
8
+ <body>
9
+ <div id="app">
10
+ <p>{{message}}</p>
11
+ <button v-on:click="reverseMessage">Reverse Message</button>
12
+ </div>
13
+ </body>
14
+ <script>
15
+ new Vue({
16
+ el:'#app',
17
+ data:{
18
+ message:'hello vue.js'
19
+ },
20
+ methods:{
21
+ reverseMessage:function(){
22
+ this.message = this.message.split('').reverse().join('');
23
+ }
24
25
+ })
26
+ </script>
27
+</html>
0 commit comments