慕容3067478
var href = window.location.href, str = href.substring(href.indexOf("#")+1), reg = /([^&#?=]+)=(\w*)/g, result = []; str.replace(reg,function(str,key,val){ result = val.split("&"); return str;}); 这样应该可以了