最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Vuejs v

网站源码admin12浏览0评论

Vuejs v

Vuejs v

<tr v-for="(unfilm) in film" v-bind:key="unfilm.key">
 
   <td>
                      <div id="titolo">{{unfilm.titolo}}</div>
    </td>
	
	   <td>
                                <img :src="unfilm.locandina" style="max-width: 50px;">
       </td>
	   
	    <i @click="cancellaFilm(unfilm)" class="material-icons deep-orange-text text-darken-4"
            style="cursor: pointer;">delete</i></td>
			
			
			cancellaFilm(unfilm) {
			  gamesRef.child(unfilm['.key']).remove()
			  
			   this.$toastr.info('Errore', 'Attenzione');
          //  this.$alert("Film cancellato")
        }
  }
回答如下:

cancellaFilm()功能中,unfilm['.key']undefined

执行

gamesRef.child(unfilm['key']).remove()

代替。

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论