Answer the question
In order to leave comments, you need to log in
Is there a difference in the way functions are declared?
I noticed that different people in the vue examples create methods in different ways. Here are the options:
...
methods:
demo1 () {
// something doing
},
demo2: () => {
// something doing
},
demo3: function () {
// something doing
},
},
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question