Comparison between the general method / calculated attribute and the monitoring attribute watch in vuejs

backgroundIn vue, you can use common methods to implement the same functional requirements, or you can use the calculated attribute and the watch attribute. At the beginning, there were some puzzles about their useAs for when to use the method, when to use the calculated attribute and the watch attribute, it is often a headacheDifferent methods ...

Posted by networkthis on Wed, 12 Jan 2022 22:31:53 +0100