当前位置:网站首页>Convert object to URL
Convert object to URL
2022-04-23 08:06:00 【Pen drawing Acacia】
var strUrl="http:baidu.com/stu/?lx=1&name=aa&sex=man";
var s=strUrl.indexOf('?');
var strs=strUrl.slice(s+1);
var strAry=strs.split('&');
var objs={};
for(var i=0;i<strAry.length;i++){
var item=strAry[i];
var itemAry=item.split('='),
itemAryl=itemAry[0],
itemAryr=itemAry[1];
objs[itemAryl]=itemAryr;
}
版权声明
本文为[Pen drawing Acacia]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230624332424.html
边栏推荐
- Reptile learning notes, learning reptile, read this article is enough
- C read INI file and write data to INI file
- Intranet security attack and defense: a practical guide to penetration testing (6): domain controller security
- Cloud computing skills competition -- the first part of openstack private cloud environment
- NIH降血脂指南《your guide to lowering your Cholesterol with TLC》笔记(持续更新中)
- Search and replacement of C text file (WinForm)
- DataBinding的使用五
- 简述存储器的分级策略
- Chapter V investment real estate
- 【编程实践/嵌入式比赛】嵌入式比赛学习记录(二):基于TCP的图片流传输
猜你喜欢
智能名片小程序名片详情页功能实现关键代码
[programming practice / embedded competition] learning record of embedded competition (II): picture streaming based on TCP
Go语学习笔记 - 结构体 | 从零开始Go语言
Intranet penetration series: icmpsh of Intranet tunnel
MySQL--锁的奥秘--数据怎么锁
Intranet penetration series: icmptunnel of Intranet tunnel (Master James Barlow's)
数据库之MySQL——基础篇
Upload labs range practice
Research on software security based on NLP (2)
巨头押注的全屋智能,正在驱动海信、华为、小米们「自我革命」
随机推荐
求3个字符串(每串不超过20个字符)中的最大者。
Mobile terminal layout (3D conversion, animation)
以下程序实现从字符串str中删除第i个字符开始的连续n个字
Interview learning route
访问数据库的时候出现错误 Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.详解
Face to face summary 2
简述CPU
爬虫学习笔记,学习爬虫,看本篇就够了
Complete learning from scratch, machine learning and deep learning, including theory and code implementation, mainly using scikit and mxnet, and some practices (on kaggle)
[problem solving] vs2019 solves the problem that the EXE file generated by compilation cannot be opened
KCD_ EXCEL_ OLE_ TO_ INT_ Convert reports an error sy subrc = 2
Concours de compétences en informatique en nuage - - première partie de l'environnement cloud privé openstack
Redis -- why is the string length of string emstr the upper limit of 44 bytes?
Three minutes to teach you to use Houdini fluid > > to solve particle fluid droplets
upload-labs 靶场练习
How does feign integrate hystrix
内网渗透系列:内网隧道之pingtunnel
云计算赛项--2020年赛题基础部分[任务3]
C smoothprogressbar custom progress bar control
C problem of marking the position of polygons surrounded by multiple rectangles