Skip to content

app.js#6

Open
xiaozhu0927 wants to merge 1 commit intomasterfrom
lesson-6
Open

app.js#6
xiaozhu0927 wants to merge 1 commit intomasterfrom
lesson-6

Conversation

@xiaozhu0927
Copy link
Copy Markdown

new Vue({
el: '#vue-app',
data: {
age: 25,
x: 0,
y: 0
},
methods: {
add: function(inc){
this.age += inc;
},
subtract: function(dec){
this.age -= dec;
},
updateXY: function(event){
this.x = event.offsetX;
this.y = event.offsetY;
},
click: function(){
alert('you clicked me');
}
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants