|
|
@ -1489,15 +1489,17 @@ function newsousuopage(keyword,searchtype,relyfile) { |
|
|
|
url: $.toString(() => { |
|
|
|
url: $.toString(() => { |
|
|
|
if(input){ |
|
|
|
if(input){ |
|
|
|
putMyVar('SrcJu_sousuoName',input); |
|
|
|
putMyVar('SrcJu_sousuoName',input); |
|
|
|
let recordlist = storage0.getItem('searchrecord') || []; |
|
|
|
if(input){ |
|
|
|
if(recordlist.indexOf(input)>-1){ |
|
|
|
let recordlist = storage0.getItem('searchrecord') || []; |
|
|
|
recordlist = recordlist.filter((item) => item !== input); |
|
|
|
if(recordlist.indexOf(input)>-1){ |
|
|
|
} |
|
|
|
recordlist = recordlist.filter((item) => item !== input); |
|
|
|
recordlist.unshift(input); |
|
|
|
} |
|
|
|
if(recordlist.length>20){ |
|
|
|
recordlist.unshift(input); |
|
|
|
recordlist.splice(recordlist.length-1,1); |
|
|
|
if(recordlist.length>20){ |
|
|
|
|
|
|
|
recordlist.splice(recordlist.length-1,1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
storage0.setItem('searchrecord', recordlist); |
|
|
|
} |
|
|
|
} |
|
|
|
storage0.setItem('searchrecord', recordlist); |
|
|
|
|
|
|
|
refreshPage(true); |
|
|
|
refreshPage(true); |
|
|
|
} |
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|