http://en.wikipedia.org/wiki/Query_string The series of pairs is separated by the ampersand, '&' (or semicolon, ';' for URLs embedded in HTML and not generated by a <form>...</form>; see below). While there is no definitive standard, most…
/* *扩展jquery的功能: *读取url中参数的功能,方法的参数是要获取的URL里键; *使用前要先导入jquery.js文件. * */ (function ($) { $.getUrlParam = function (name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).mat…
一.咱们经常会遇到浏览器给encode后的url,如何转换成咱们都能识别的url呢?很简单,talk is easy,Please show me your code,如下所示: (1)英文decode url='https://www.jyall.com/authorize?response_type=code&client_id=tg83cslIky&state=null&redirect_uri=https%3A%2F%2Fycapi.ele.me%2Fsso%2Fnapos…