一、$emit 1、this $emit('自定義時(shí)間名',要傳送的數(shù)據(jù)); 2、觸發(fā)當(dāng)前實(shí)例上的時(shí)間,要傳遞的數(shù)據(jù)會(huì)傳給監(jiān)聽(tīng)器; 二、$on 1、VM.$on('事件名',...
IP屬地:北京
一、$emit 1、this $emit('自定義時(shí)間名',要傳送的數(shù)據(jù)); 2、觸發(fā)當(dāng)前實(shí)例上的時(shí)間,要傳遞的數(shù)據(jù)會(huì)傳給監(jiān)聽(tīng)器; 二、$on 1、VM.$on('事件名',...