jquery jqURL - URL处理插件
方法介绍:
假设当前页URL为 "http://www.mysite.com?var1=1&var2=2&var3=3"
Method 1:
$.jqURL.url()
$.jqURL.url()
return "http://www.mysite.com?var1=1&var2=2&var3=3"
Method 2:
$.jqURL.loc('http://www.google.com',{w:200,h:200,wintype:'_blank'});
would open Google in a new centered 200x200 window
Method 3:
$.jqURL.qs()
return "var1=1&var2=2&var3=3"
Method 4:
$.jqURL.strip()
return "http://www.mysite.com"
$.jqURL.strip({ keys:'var1,var2' })
return "http://www.mysite.com?var3=3"
Method 5:
$.jqURL.get('var2')
return 2
Method 6:
$.jqURL.set(hash, {win:window object})
returns the new window's url.