html静态页面获取url中参数

function getURLParameter(name) { 
				return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null; 
			}
$(function(){
            	state = getURLParameter("state");});

猜你喜欢

转载自blog.csdn.net/qq_27721169/article/details/80435248
今日推荐