日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

VUE 解决:Property or method “deleteFun“ is not defined on the instance but referenced during render.

發(fā)布時間:2023/12/18 37 豆豆
生活随笔 收集整理的這篇文章主要介紹了 VUE 解决:Property or method “deleteFun“ is not defined on the instance but referenced during render. 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

前些天發(fā)現(xiàn)了一個巨牛的人工智能學習網(wǎng)站,通俗易懂,風趣幽默,忍不住分享一下給大家。點擊跳轉(zhuǎn)到教程。

1. 一個點擊事件報錯:

Property or method "deleteFun" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property

2. 報錯原因:這個方法未定義。我以為是寫在methods中的,其實不是。我原寫法:

?

3.解決:改正圖中紅框中位置代碼。

這樣就可以了。

?

總結(jié)

以上是生活随笔為你收集整理的VUE 解决:Property or method “deleteFun“ is not defined on the instance but referenced during render.的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。