摘要:
通过javascript获取url参数的方法functiongetParameterByName(name){varmatch=RegExp('[?&]'+name+'=([^&]*)').exec(window.location.search);returnmatch?decodeURIComponent(match[1].replace(/\+/g,'')):null;}//example.com?someparam=name&otherparam=8&id=6getParameterByName('s 阅读全文