当前位置:网站首页>阿里云访问资源:NoSuchKey
阿里云访问资源:NoSuchKey
2022-06-29 06:39:00 【好奇的菜鸟】
一、访问链接
https://xxxx.com/operateImg/%E6%9C%AA%E5%91%BD%E5%90%8D_%E8%87%AA%E5%AE%9A%E4%B9%89px_2022-04-12+14_26_50_1649745397000.jpeg
阿里云会自动将+号装换为空格,导致无法找到;
二、从OSS复制链接
https://xxxx.com/operateImg/%E6%9C%AA%E5%91%BD%E5%90%8D_%E8%87%AA%E5%AE%9A%E4%B9%89px_2022-04-12%2B14_26_50_1649745397000.jpeg
阿里将+号转换为%2B
三、URL编码
使用:url在线加解密
#原始链接
operateImg/未命名_自定义px_2022-04-12+14_26_50_1649745397000.jpeg
#encodeURIComponent 编码
operateImg%2F%E6%9C%AA%E5%91%BD%E5%90%8D_%E8%87%AA%E5%AE%9A%E4%B9%89px_2022-04-12%2B14_26_50_1649745397000.jpeg
#encodeURI
operateImg/%E6%9C%AA%E5%91%BD%E5%90%8D_%E8%87%AA%E5%AE%9A%E4%B9%89px_2022-04-12+14_26_50_1649745397000.jpeg
#escape
operateImg/%u672A%u547D%u540D_%u81EA%u5B9A%u4E49px_2022-04-12+14_26_50_1649745397000.jpeg
#阿里编码
operateImg/%E6%9C%AA%E5%91%BD%E5%90%8D_%E8%87%AA%E5%AE%9A%E4%B9%89px_2022-04-12%2B14_26_50_1649745397000.jpeg阿里参数使用:encodeURIComponent编码

四、encodeURIComponent,encodeURI,escape三者区别
escape:字符串编码(不适用)
encodeURIComponent、encodeURI:URL编码
encodeURIComponent、encodeURI区别:
encodeURI方法不会对下列字符编码 ASCII字母、数字、[email protected]#$&*()=:/,;?+'
encodeURIComponent方法不会对下列字符编码 ASCII字母、数字、~!*()'
所以encodeURIComponent比encodeURI编码的范围更大。
整个网址使用encodeURI编码,参数使用encodeURIComponent编码。
边栏推荐
猜你喜欢

QT qlineedit details

关于数据库,你应该知道的事情

Utilisation d'IPv6 pour réaliser l'accès public au bureau distant
![[answer all questions] CSDN question and answer function evaluation](/img/32/571c9c5f4eb7f69173ae79b8dcf427.jpg)
[answer all questions] CSDN question and answer function evaluation
什么是测试架构师

HANA数据库License的查看申请及安装

WordPress adds article topping, password protection, and privacy Tags

树形下拉选择框el-select结合el-tree效果demo(整理)

微信小程序学习笔记(暑假)

QT qframe details
随机推荐
QT serial port programming
Markdown 技能树(8):代码块
IMX6DL4.1.15支持EIM总线(下)——配置原理分析。
SYSTEMd management node exporter
[translation] [Chapter 2 ③] mindshare PCI Express technology 3.0
Genicam gentl standard ver1.5 (3) Chapter 4
uva10635
详解Autosar Arxml中的CANFD报文及格式
[QNX Hypervisor 2.2用户手册]6.2.1 Guest之间通信
Introduction to NoSQL database
Shift/space studio "Aurora" project: building a villa in the sandbox metauniverse
【软件测试】接口——基本测试流程
LeetCode_动态规划_中等_91. 解码方法
关于数据库,你应该知道的事情
Redis of NoSQL database (II): introduction to redis configuration file
[software test] interface - Basic test process
QT foreach keyword
National Security Agency and CISA kubernetes reinforcement guidelines - new content in version 1.1
QT qlineedit details
树形下拉选择框el-select结合el-tree效果demo(整理)