<div class="jb51code">
<pre class="brush:js;">
var parseParam=function(param,key){
varparamStr="";
if(paraminstanceof String||param instanceof Number||param instanceof Boolean){
paramStr+="&"+key+"="+encodeURIComponent(param);
}else{
$.each(param,function(i){
vark=key==null?i:key+(paraminstanceof Array?"["+i+"]":"."+i);
paramStr+='&'+parseParam(this,k);
});
}
returnparamStr.substr(1);
};