收藏
回答

Cannot read property 'sendDanmu' of undefined?

TypeError: Cannot read property 'sendDanmu' of undefined

回答关注问题邀请回答
收藏

2 个回答

  • Instone
    Instone
    2023-05-01
        bindInputBlur:function(e){
            console.log(e)
            this.inputValue=e.detail.value
        },
        bindSendDanmu:function(){
            console.log(this.inputValue)
            this.vedioContext.sendDanmu({
                text:this.inputValue,
                color:'#f90'
            })
            }
    

    2023-05-01
    有用
    回复 1
    • Instone
      Instone
      2023-05-01
      Cannot read property ’sendDanmu‘;
      2023-05-01
      回复
  • ⅴ
    2022-11-01

    这玩意是undefined,没有取到值

    2022-11-01
    有用
    回复 1
    • Instone
      Instone
      2023-05-01
      大佬怎么vedioContext取到值,我的myVideo是在开发者工具中可以播放的
      js中:

      onReady:function(){
              this.vedioContext=wx.createVideoContext(’myVideo‘)
          }
      2023-05-01
      回复
登录 后发表内容