uniapp全局變量的動態更新The computed property "num" is already defined in data. found in

The computed property "num" is already defined in data.

found in

這個報錯是因爲  如果再computed這個方法裏面監聽全局變量了,

就不要在data裏面聲明同一個名字的變量了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章