当前位置:网站首页>decodeURIComponent()、eval()、encodeURIComponent()
decodeURIComponent()、eval()、encodeURIComponent()
2022-07-30 10:51:00 【LH2HA3】
let part = eval(decodeURIComponent("/" + this.passwordParent.configValue + "/"))
eval()函数
encodeURIComponent() 对uri进行编码
decodeURIComponent() 对uri进行解码
let uri="https://www.runoob.com/my test.php?name=ståle&car=saab";
let uri_encode=encodeURIComponent(uri);
console.log(uri_encode)
let uri_decode = decodeURIComponent(uri_encode)
console.log(uri_decode)
//输出结果
https%3A%2F%2Fwww.runoob.com%2Fmy%20test.php%3Fname%3Dst%C3%A5le%26car%3Dsaab
https://www.runoob.com/my test.php?name=ståle&car=saab
边栏推荐
猜你喜欢
Linux内核设计与实现(十)| 页高速缓存和页回写
电流继电器JL-8GB/11/AC220V
360闷声干大事获赞无数,数字安全如何保障?还得看企业安全云
Pytorch中 nn.Transformer的使用详解与Transformer的黑盒讲解
Beyond Stream Processing!The 4th real-time computing Flink challenge is launched, and 490,000 prizes are waiting for you!
【C和指针第七章】可变参数列表
第3章 信息收集
Easy gene: human tRNA gene loci showed age-related high DNA methylation | research articles
360发布面向未来的EDR,全方位守护政企用户终端安全
Beyond Stream Processing !第四届实时计算 Flink 挑战赛启动,49 万奖金等你来拿!
随机推荐
360 released a future-oriented EDR to protect the security of government and enterprise user terminals in an all-round way
【云原生】-Docker安装部署分布式数据库 OceanBase
mysql与redis 区别
PanGu-Coder: 函数级的代码生成模型
AIX shell获取前几个月时间
还在用Swagger?我推荐这款零代码侵入的接口管理神器
【JZ64 求1+2+3+...+n】
数据库事务,JDBC操作和数据类型
电流继电器JL-8GB/11/AC220V
【HarmonyOS】【ARK UI】HarmonyOS ets语言怎么实现双击返回键退出
Verilog之数码管译码
WARN: Establishing SSL connection without server's identity verification is not recommended when connecting to mysql
原生js 创建表格
OC- about alloc and dealloc (haven't started writing yet)
Neural Network Study Notes 3 - LSTM Long Short-Term Memory Network
Array of Shell System Learning
XYplorer 23多语言,最好的管理软件之一
加密和安全
Basemap and Seaborn
活动速递| Apache Doris 性能优化实战系列直播课程初公开,诚邀您来参加!