else { get_parment.attr = key+'_'+val.join('_'); } } // 组装请求的url var url = ''; for ( var k in get_parment ) { url += "&"+k+'='+get_parment[k]; } //console.log('get_parment',get_parment); location.href ="/index.php?m=Home&c=Goods&a=goodsList"+url; }