题目内容
补全程序:下面是实现发送弹幕功能的js代码,请在(_____)处补全代码。Page({onReady: function (res) {this.videoContext = wx.createVideoContext('myVideo')},inputValue: '',data: {src: '',danmuList:[{text: '第 1s 出现的弹幕',color: '#ff0000',time: 1},{text: '第 3s 出现的弹幕',color: '#ff00ff',time: 3}]},bindInputBlur: function (e) {this.inputValue = (________)},bindSendDanmu: function () {this.videoContext.sendDanmu({text: (_______)})},videoErrorCallback: function (e) {console.log('视频错误信息:')console.log(e.detail.errMsg)}})
查看答案
搜索结果不匹配?点我反馈
更多问题