function RECENTLY_READ(){
var daytime = new Date().getTime();
var recentlys = JSON.parse(localStorage.getItem("RECENTLY_READ"))?JSON.parse(localStorage.getItem("RECENTLY_READ")):[];
var text = {
bookid:bids,
title:title,
cID:cids,
chaptercname:storage.chaptercname,
time:daytime
};
if(recentlys.length){
for(var i = 0;i<recentlys.length;i++){
if(recentlys[i].bookid == text.bookid){
recentlys.splice(i,1)
}
}
recentlys.splice(0,0,text)
if(recentlys.length>20){
arr.splice(-1,1)
}
}else{
recentlys.splice(0,0,text)
}
localStorage.setItem("RECENTLY_READ",JSON.stringify(recentlys));
}