标签:
function getURLParameter(name) { return decodeURIComponent((new RegExp(‘[?|&]‘ + name + ‘=‘ + ‘([^&;]+?)(&|#|;|$)‘).exec(location.search)||[,""])[1].replace(/\+/g, ‘%20‘))||null; }; var token = getURLParameter("token");
标签:
原文地址:http://www.cnblogs.com/nihaorz/p/5332731.html