찾다

 >  Q&A  >  본문

Vue.js 루프의 마지막 요소에 class="" 추가를 방지하는 방법

<p>vuejs 템플릿에서 인덱스의 마지막 반복을 반복할 때 tailwind 클래스를 제거합니다. </p> <p><strong>템플릿 내</strong></p> <pre class="brush:php;toolbar:false;">v-for="(service, index) in getAllServices.home_page_services" :key="index"</pre> <p><strong>스크립트 내</strong></p> <pre class="brush:php;toolbar:false;"><script> 기본값 내보내기 { 탑재() { this.$store.dispatch("getHomePageContent") }, 계산됨: { getAllServices(){ this.$store.getters.getContentFormGetters를 반환하세요. } } }</pre></p>
P粉868586032P粉868586032536일 전550

모든 응답(1)나는 대답할 것이다

  • P粉949848849

    P粉9498488492023-08-30 10:00:49

    내가 해결할 수 있어

    으아악

    회신하다
    0
  • 취소회신하다