我可以做些什么来完成这项工作?
我想在' vue.js 2'中做这样的事情。 什么是正确的方法?
<script>
var app = new Vue({
el: "#app",
data: {
config: []
},
methods: {
addLine: function() {
alert();
}
}
});
//I'd like to do something like this in vue.js 2
app.addLine();
//But it doesn't work
//What's the correct way?