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

Reality Is Broken

Reality Is Broken

Jane McGonigal / Penguin Press HC, The / 2011-1-20 / USD 26.95

Visionary game designer Jane McGonigal reveals how we can harness the power of games to solve real-world problems and boost global happiness. More than 174 million Americans are gamers, and......一起来看看 《Reality Is Broken》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

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

HEX HSV 互换工具