第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

VUE里面 watch log出來的this,與mounted log出來的this 不一樣!

VUE里面 watch log出來的this,與mounted log出來的this 不一樣!

紫衣仙女 2018-10-12 14:10:04
    watch:{      Applist:()=>{        console.log("Applist改變");        var _self = this;        console.log(_self);        var scroll_area = document.getElementById('scroll_area');        setTimeout(()=>{          console.log(_self);          _self.scrollbar(scroll_area);        },100)      }    },    mounted: function(){      let _self=this;      console.log("log self");      console.log(_self);      let scroll_area = document.getElementById('scroll_area');      _self.getAppList();      setTimeout(()=>{        _self.scrollbar(scroll_area);      },100)    }
查看完整描述

1 回答

?
蝴蝶不菲

TA貢獻1810條經驗 獲得超4個贊

https://img1.sycdn.imooc.com//5c00e7ac00010ad207770060.jpg

其實官方文檔有寫,都不能用箭頭函數的

查看完整回答
反對 回復 2018-11-30
  • 1 回答
  • 0 關注
  • 1069 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號