tion() {
var bookid=$("#bookChapterbookId").val();
var con =$("#chapterContent").val();
if($.trim(con)!="" && $.trim(con).length >=100 ){
$.ajax({
url:"/book/autoSaveChapter.action",
type:"post",
data:{"bookChapter.bookId":bookid,
"bookChapter.chapterContent":con},
success:function(data){
if($.trim(data)!='' && $.trim(data)!='null'){
$("#show").html(data+" 已自动保存您正在撰写的章节内容!");
}
}
});
}
});
});
function restoreChapter(bookId){
$.ajax({
url:"/book/restoreChapter.action",
type:"post",
data:{"bookChapter.bookId":bookId},
success:function(msg){
if($.trim(msg)!='' && $.trim(msg)!='null'){
$("#chapterContent").val(msg);
}else{
alert("当前此书尚没有自动保存的章节内容!");
$("#chapterContent").focus();
}
}
});
}
快速增加章节
作者后台新手指南
选择作品:
护花狂龙
霸傲星穹
请输入正确的
本章未完,请点击下一页继续阅读!