当前位置:网站首页>JS获得URL超链接的参数值
JS获得URL超链接的参数值
2022-08-03 23:10:00 【IK_LinKing】
超链接: http://xxxxxxx.html?id=10
$(function(){
var idPre = window.location.href.split("?")[1];
var id = idPre.split("=")[1];
解释说明:
window.location.href 获取整个链接
window.location.href.split(“?”)[ 1 ] ; 从?切开,[1]的意思是取右边,即取出了 id = 10
再对=分割,取右边[1],就得到了 数字10
边栏推荐
- 2022/8/3 考试总结
- End-to-End Lane Marker Detection via Row-wise Classification
- P1996 约瑟夫问题
- With the rise of concepts such as metaverse and web3.0, many digital forms such as digital people and digital scenes have begun to appear.
- 为什么我们需要回调
- "Digital Economy Panorama White Paper" Financial Digital User Chapter released!
- UVa 1025 - A Spy in the Metro (White Book)
- log4j-slf4j-impl cannot be present with log4j-to-slf4j
- (PC+WAP)织梦模板不锈钢类网站
- Research status of target detection at home and abroad
猜你喜欢

LabVIEW code generation error 61056

Cloud platform construction solutions

(PC+WAP)织梦模板不锈钢类网站

响应式织梦模板塑身瑜伽类网站

Fluorescein-PEG-CLS,胆固醇-聚乙二醇-荧光素科研试剂

End-to-End Lane Marker Detection via Row-wise Classification

HCIP BGP实验报告

软件测试内卷严重,如何提升自己的竞争力呢?

【论文阅读】TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve

3D 语义分割——2DPASS
随机推荐
Unity2021 releases WebGL fog effect disappearing problem
(PC+WAP)织梦模板螺钉手柄类网站
PowerMockup 4.3.4::::Crack
冰河又一MySQL力作出版(文末送书)!!
ML之interpret:基于titanic泰坦尼克是否获救二分类预测数据集利用interpret实现EBC模型可解释性之全局解释/局部解释案例
Quickly build a website with static files
Unity2021发布WebGL雾效消失问题
utlis thread pool
Binary search tree to solve the fallen leaves problem
utlis 线程池
完全二叉树问题
用两个栈模拟队列
P1449 后缀表达式
Lift, Splat, Shoot: Encoding Images from Arbitrary Camera Rigs by Implicitly Unprojecting to 3D 论文笔记
On the Qixi Festival of 2022, I will offer 7 exquisite confession codes, and at the same time teach you to quickly change the source code for your own use
Interpretation of ML: A case of global interpretation/local interpretation of EBC model interpretability based on titanic titanic rescued binary prediction data set using interpret
How many way of calling a function?
Research status of target detection at home and abroad
golang写的存储引擎,基于b+树,mmap
The principle and use of AOSP CameraLatencyHistogram