Vue JS의 v-for 루프 내에서 변수 설정 SPA에 vue.js를 사용하는 v-for 루프가 있는데 변수를 인쇄할 때마다 메서드를 호출하고 있기 때문에 처음에 변수를 설정한 후 필요할 때마다 인쇄할 수 있는지 궁금합니다. 이것은 JSON 데이터입니다. { "likes": ["famiglia", "ridere", "caffè", "cioccolato", "tres leches", "ballare", "cinema"], "dislikes":["tristezze", "abuso su animali", "ingiustizie", "bugie"] } 그런 다음 루프에서 사용합니다. // NOTE: I need to use the variable like this in different places, and ..