var tooAjaxData = new Object();

tooAjaxData = function () {
this.AjaxUrl =" ";
};

bookInfoClient.Data.prototype = {
AjaxGet: function () {
$.ajax({
type: "GET",
url: arguments[3] || this.AjaxUrl,
data: arguments[0] || "",
dataType: "jsonp",
jsonp: "callbackparam",
jsonpCallback: arguments[1] || "bookInfo",
success: arguments[2] || function () { },
complete: function (XHR, TS) { XHR = null }
});
},
DownLoadtest: function () {
if (arguments.length != 3) return;
var data = { ajaxMethod: "getforstorage", bookid: arguments[0], chapterid: arguments[1] };
this.AjaxProcess(data, "DownLoadCurChapter", arguments[2],  "Book/BookReader.ashx");
},
GetBookInfo: function () {
if (arguments.length != 2) return;
var data = { ajaxMethod: "getbookinfo", bookid: arguments[0] };
this.AjaxProcess(data, "getbookinfo", arguments[1]);
},
GetVolumeChapter: function () {
if (arguments.length != 3) return;
var data = { ajaxMethod: "getallvolumechapter", bookid: arguments[0], isreadvip: arguments[1] };
this.AjaxProcess(data, "getallvolumechapter", arguments[2]);
}

}

 

相关文章:

  • 2022-02-08
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
猜你喜欢
  • 2021-08-16
  • 2021-07-03
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-06-18
相关资源
相似解决方案