最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

Vuejs v

IT培训 admin 11浏览 0评论

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()

代替。

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. 暂无评论