在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ Cannot read property 'push' of null vu

Cannot read property 'push' of null vue2.0

let data = {

      orderNum:this.orderNum,
      receiverName:this.consigneeName,
     };
     
    if(!this.consigneeVisible2){//添加
       this.receiverInfo.push(data);
    }
    

this.receiverInfo是我在data里定義的一個(gè)數(shù)組,一添加就會(huì)報(bào)這個(gè)錯(cuò)

回答
編輯回答
貓館

receiverInfo哪里來的

2017年8月1日 14:21
編輯回答
影魅

你把代碼貼全吧,有些初始聲明你還上我們猜

2018年1月26日 08:45
編輯回答
汐顏

是怎么定義的呢?

2018年4月9日 14:51
編輯回答
挽青絲

看一下this.receiverInfo的初始定義

2018年5月25日 21:06