javascript - jquery url builder/parser -
i'm searching jquery plugin full url manipulation (parsing, building).
example:
var url = 'http://mypage.com/?param=1' var params = $.getparams(url) # {param: 1} var newurl = $.newurl(url, {param:2}) # 'http://mypage.com/?param=2' thx.
there jquery plugin https://github.com/allmarkedup/jquery-url-parser used once. once console.log window.location see not hard self.
i never tried one: http://urldecoderonline.com/javascript-url-decode-jquery-plugin.htm seems can build url to.
have fun
Comments
Post a Comment