- AudioContext监听器怎么移除?
代码如下图,点击按钮16次Console栏就会出现Event黄色警告,已经添加了31个监听器,怎么移除多的监听器,试过onEnded方法、off方法、removeEventListener方法,都提示this.audioCtx.*** is not a function,怎么才能移除监听器? [图片]
2023-12-31 - 用wx.createInnerAudioContext为什么不能读取本地音频文件?
下面两幅截图是两种播放音频文件的代码,用wx.createInnerAudioContext不能播放音频,提示无法读取音频文件,而用audio组件就能正常播放,为什么用wx.createInnerAudioContext播不了? [图片] [图片]
2023-12-29 - 列表A加入表格B,表格B的每一列怎么都改成列表A了?
新建列表A和表格B,三个按钮1,2,3 添加如下事件,点击按钮1,列表A设置为[1,1,1,1,1],将列表A加入表格B 点击按钮2,列表A设置为[2,2,2,2,2],将列表A加入表格B 点击按钮3,列表A设置为[3,3,3,3,3],将列表A加入表格B 调试场景,点击按钮1,预计结果是A为[“1”,“1”,"1","1","1"],B为[[“1”,“1”,"1","1","1"]],实际结果A为[“1”,“1”,"1","1","1"],B为[[“1”,“1”,"1","1","1"]],A、B都正确 再点击按钮2,预计结果是A为[“2”,“2”,"2","2","2"],B为[[“1”,“1”,"1","1","1"],[“2”,“2”,"2","2","2"]],实际结果A为[“2”,“2”,"2","2","2"],B为[[“2”,“2”,"2","2","2"],[“2”,“2”,"2","2","2"]],A正确B错误 再点击按钮3,预计结果是A为[“3”,“3”,"3","3","3"],B为[[“1”,“1”,"1","1","1"],[“2”,“2”,"2","2","2"],[“3”,“3”,"3","3","3"]],实际结果A为[“3”,“3”,"3","3","3"],B为[[“3”,“3”,"3","3","3"],[“3”,“3”,"3","3","3"],[“3”,“3”,"3","3","3"]],A正确B错误 为什么每次给B加列表A,B原来的列都变成最新的列表A了?
2023-11-03 - 微信小程序console中预览值和实际值为什么不一样?
[图片] yue预览值和实际值不一样呢?上面预览是527825,下面实际是2175,预览值是正确的
2021-06-04