html间传递参数<script>
str="username=用户名&id=用户ID&username=用户名&id=用户ID"
reg=/([^&=]*)=([^&]*)(?=&|$)/g
while(arr=reg.exec(str)){
alert(arr[1]+"的值是"+arr[2])
}
</script>