jQuery URL参数插件 jQuery Querystring

软件介绍

这是一个用来获取URL中参数的jQuery插件。

语法:

querystring({[selector], [defaultvalue].[returndefaultifempty]})

note; [returndefaultifempty] - if true returns defaultvalue if no querystrings (in the URL) else returns defualt vaue of querystrings if no querystrings

使用方法:

获取所有参数 querystring ({selector:[{id:"*"}]})

获取某个参数 querystring({selector:[{id:"querystring name"}]})

if you want all query strings to return the same certain value when you cant find them({selector:[{id:""}]}, deafaultvalue:"hello")

if you want all query strings to return a certain indvidual value when you cant find them({selector:[{id:"", deafaultvalue:"hello"}, {id:"", deafaultvalue:"bye"}]})

the last two examples can be used togther but indvidual defaultvalues will override the global one outside the selector array.

think you can write this documentation better contact me!

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

Foundations of PEAR

Foundations of PEAR

Good, Nathan A./ Kent, Allan / Springer-Verlag New York Inc / 2006-11 / $ 50.84

PEAR, the PHP Extension and Application Repository, is a bountiful resource for any PHP developer. Within its confines lie the tools that you need to do your job more quickly and efficiently. You need......一起来看看 《Foundations of PEAR》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

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

HEX HSV 互换工具