第329章你还有什么遗言?(5 / 6)
//
varcurrbook={type:1};
currbook.bookid='540657';//"540657";
currbook.chapterid='34085536';//"34085536";
currbook.sectionid='0';//"";
functionsavefootprint(count){
if(!currbook.bookidurrbook.bookid==0){
//nobook-id,wrongparametter
return;
}
if(count>3){
return;
}
jquery.ajax({
url:domain.bookhostname+"/ajax/user.footprint.save.do?bookid=540657&chapterid=34085536§ionid=0",
data:currbook,
processdata:false,
datatype:"jsonp",
ess:function(data){
if(data&&data.length>0){
//ess,donothing.
}else{
//fail,willtry2times.thenend
savefootprint(count+1);
}
}
});
}
jquery(docu(){
var_keyfootprint='tempfootprint';
if(window.user==nulldow.user==undefined){
if(!currbook.bookidurrbook.bookid==0urrbook.chapteridurrbook.chapterid==0){
//noinformation
}else{
//bookid_chapterid_sectionid|
varfootprint=cookieutil.getcookie(_keyfootprint);
if(footprint){
varfootprints=footprint.split('|');
varnewidx;
varnewfootprints=[];
var_start=footprints.length>10?(footprints.length-9):0;
for(newidx=0;_start<footprints.length;_start++){
varpatt=newregexp(currbook.bookid+'_');
if(patt.test(footprints[_start])){
//console.debug(currbook.id+'_'+',value:'+footprints[_start]);
continue;
}
newfootprints[newidx++]=footprints[_start];
}
footprint=newfootprints.join('|');
转码声明:以上内容基于搜索引擎转码技术对网站内容进行转码阅读,自身不保存任何数据,请您支持正版