- 求助!请问怎么获取指定音频段的buffer?
现在获取0~x的audiobuffer,但如何拿到指定音频片段如:2~x ,我没有思路 [图片] [图片] 这是上图的代码 https://developers.weixin.qq.com/s/flK4H4mm71CA
2022-09-06 - 请教,怎么将下列数据根据字段里元素的个数进行排序?
// 怎么将下列数据根据status字段里元素的个数进行排序 list = [ { "_id": { "user":"A" }, "status": [ "success", "checking", "success", "checking", "success", "checking", "checking", "checking", "checking", "checking" ] }, { "_id": { "user": "B" }, "status": [ "success", "success", "success", "success", "fail", "success", "fail", "fail", "fail", "fail", "checking", "checking", "checking", "checking", "checking", "checking", "checking", "checking" ] }, { "_id": { "user": "C" }, "status": [ "fail" ] }, { "_id": { "user": "D" }, "status": [ "fail", "fail" ] } ] // 处理后的数据 list = [ { "_id": { "user": "B" }, "status": [ "success", "success", "success", "success", "fail", "success", "fail", "fail", "fail", "fail", "checking", "checking", "checking", "checking", "checking", "checking", "checking", "checking" ] }, { "_id": { "user":"A" }, "status": [ "success", "checking", "success", "checking", "success", "checking", "checking", "checking", "checking", "checking" ] }, { "_id": { "user": "D" }, "status": [ "fail", "fail" ] }, { "_id": { "user": "C" }, "status": [ "fail" ] } ] // list是聚合函数获取的数据 db.collection('userUpfile') .aggregate() .group({ _id: { user: '$user' }, status: $.push( "$status" ) }) .sort() .limit(1000) .end()
2022-08-23 - 讨论,为什么电脑端可以正常上传文件到云存储而手机端不行?
打印的据和电脑端一样,想请教一下大家有没有遇到这种情况(代码量太大不方便放)
2022-08-21 - 为啥引用vant组件后不显示样式,只有退出重进才能正常?
https://developers.weixin.qq.com/s/ptKQG5me7sB3 [图片]
2022-07-28 - 为啥页面引用自定义顶部导航栏时识别不了高度?
[图片] [图片] 这是代码片段 https://developers.weixin.qq.com/s/nDcmeHmg7xAb
2022-07-12 - 为啥a页面使用require接收b页面传来的函数一直报错?
a页面如何使用b页面的bindShop函数? [图片]这是b页面 [图片]这是a页面 这是代码片段 https://developers.weixin.qq.com/s/879syHmh7wAQ
2022-07-12 - 请教个navigateTo跳转后返回的问题?
我从A页面通过navigateTo跳转到B界面,怎么从B页面的返回跳转到主页,而不是返回到A界面 [图片]
2022-07-08 - 请问云函数这种报错是因为更新字段太多了吗?
[图片] [图片]
2022-07-04 - 为什么云控制台调试的云函数能成功,本地就不行?
[图片] 云函数调用失败 [图片] 云开发控制台调用成功 [图片] 传的参数打印出来也是正常的 这是调试代码 const db = cloud.database() const cmd = db.command if(event.type == 'rvmnote'){ // 通过event.id删除指定数据 console.log(event.type,event.id,event.openid) await db.collection("userData") .where({ _openid: "as13df23ads2f12123", }) .update({ data:{ noteBook:cmd.pull({ _id:event.id }) } }) } 数据库测试数据: noteBook:[ {_id:"weq1q3wer21q3we2123",content:'abc'}, {_id:"qer1q3wer21q3we2rrr",content:'bcx'}, // 要删除的数据 {_id:"dfj25f6sd5fsd5dsf65",content:'hjh'} ]
2022-06-27 - 请教,怎么通过id删除数据库里数组的指定元素?
[图片]
2022-06-25