jQuery URL参数插件 jQuery Querystring
- 授权协议: 未知
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://plugins.jquery.com/project/jQQs
软件介绍
这是一个用来获取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!
HTML5秘籍(第2版)
[美] Matthew MacDonald / 李松峰、朱巍、刘帅 / 人民邮电出版社 / 2015-4 / 89.00元
不依赖插件添加音频和视频,构建适用于所有浏览器的播放页面。 用Canvas创建吸引人的视觉效果,绘制图形、图像、文本,播放动画,运行交互游戏。 用CSS3将页面变活泼,比如添加新奇的字体,利用变换和动画添加吸引人的效果。 设计更出色的Web表单,利用HTML5新增的表单元素更加高效地收集访客信息。 一次开发,多平台运行,实现响应式设计,创建适配桌面计算机、平板电脑和智能手机......一起来看看 《HTML5秘籍(第2版)》 这本书的介绍吧!
