methods: The method in methods will be executed several times after being called several times
computed: after the first execution, the computed attribute will be cached, and only when the dependent attribute changes, it will be executed again
The difference between methods and computed in vue
Guess you like
Origin blog.csdn.net/lala1091/article/details/115544417
Recommended
Ranking