默認ID銷量更新時間rchByClass(){
if (jQuery("#keyword").val()==''){
//alert('請輸入關(guān)鍵字!');
//jQuery("#keyword").focus();
//return;
}
var url=location.href;
var newurl='';
if (url.indexOf('?')!=-1){ //沒有啟用偽靜態(tài)
var param=url.split('?')[1];
var newparam=getNewSearchParam(param);
newurl='index.aspx?'+newparam;
}else{ //啟用偽靜態(tài)
var parr=url.split('/');
var qparam=parr[parr.length-1];
var ext=".aspx";
if (ext=="/"){
qparam=parr[parr.length-2];
}
var preurl=url.replace(qparam,'');
var param=qparam.replace(ext,'');
var newparam=getNewSearchParam(param);
if (preurl.substr(preurl.length-2)=="http://"){
preurl=preurl.substr(0,preurl.length-1);
}
newparam=newparam.replace(/\/\//g,"/");
newurl=preurl+newparam+ext;
newurl=newurl.replace(/\/key/g,",key");
}
location.href=newurl;
}
function getNewSearchParam(param){
var key=jQuery("#keyword").val();
var parr=param.split(',');
var newparam='';
for (var i=0;i