首页传递参数组装成json数据,再编码
var param="{type:'"+type+"',text:'"+select_text+"',select_:'"+select_+"',typename:'"+typename+"'}";
window.self.location="/"+ServerName+"/public/serverlist.html?param="+encodeURI(param);
 
接受参数页面是这样解析的
//获取index搜索的条件
var search=window.location.search;
var param=decodeURI(search);
function OperatorParam(){
if(param!=null&&param!=""){
param=param.substring(param.indexOf("=")+1,param.length);
var json=eval('('+param+')');
var type=json.type;
var typename=json.typename;
var select_=json.select_;
var text=json.text;
 
}
 
}
05-06 07:09