c***@163.com
c***@163.com
  • 发布:2024-12-09 18:32
  • 更新:2024-12-09 19:08
  • 阅读:112

阿里私有MP3音频地址带有特殊字符%2B,使用uni.getBackgroundAudioManager()设置src无法播放

分类:uni-app

阿里私有MP3音频地址带有字符%2B,使用uni.getBackgroundAudioManager()设置src无法播放

2024-12-09 18:32 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

你可以使用 encodeURIComponent 和 decodeURIComponent,转换一下试试。

  • c***@163.com (作者)

    不行,其他的%2d什么的都没问题,但是只要是碰到%2B就没用了

    2024-12-16 15:20

  • c***@163.com (作者)

    decodeURIComponent会把%2B变成+号,问过阿里工单必须使用%2B

    2024-12-16 16:59

要回复问题请先登录注册