教程集 www.jiaochengji.com
教程集 >  jQuery  >  jQuery 插件  >  正文 jQuery URL参数插件 jQuery Querystring

jQuery URL参数插件 jQuery Querystring

发布时间:2014-05-07   编辑:jiaochengji.com
这是一个用来获取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 使用方法: 获取
这是一个用来获取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!

您可能感兴趣的文章:
jQuery URL参数插件 jQuery Querystring
jQuery URL Parser
jquery-utils
jQuery获取地址栏参数插件(模仿C#)
jQuery.query.js 取参数的两点问题分析
jquery实例 获取页面url且根据url模拟单击事件
jQuery日历插件 jQuery Week Calendar
jQuery 获取URL参数的插件
分享一个获取url参数jquery插件
jQuery的Cookie插件 cookies

[关闭]
~ ~