jquery.search

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-05 16:27:44

软件介绍

基于jquery开发的读取url查询参数的小插件,功能:

查询给定的url查询指定key的值

查询window.location.search查询指定key的值

查询window.location.search所有queryString的键值对数组

使用方法:

请确保每个key后面的值经过了 encodeURIComponent() 方法编码

示例url:http://www.example.com/?name=example&age=20

1.获取指定key的值

$.x_search('name'); //返回 example

2.获取所有

$.x_search();//返回[{name:"example"},{age:"20"}]

3.获取指定url的指定值

$.x_search('name','http://www.site.com/?name=exa');//返回 exa

本文地址:https://www.codercto.com/soft/d/22726.html

Lean Analytics

Lean Analytics

Alistair Croll、Benjamin Yoskovitz / O'Reilly Media / 2013-3-18 / USD 29.99

If you're involved with a startup, analytics help you find your way to the right product and market before the money runs out. But with a flood of information available, where do you start? This book ......一起来看看 《Lean Analytics》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具