jquery:$.ajax() 复杂 完整例子
var makingCount = 0;
var pageCount = 0;
var pagesize = 6;
//处理制作中
function divmaking_click() {
//处理搜索(新增代码)
var hf_searchFlag = $("#<%=hfSearchFlag.ClientID %>");
var _searFlag = false;
if (hf_searchFlag.val() == "SearchTrue") {
_searFlag = true;
}
var start_date = $("#<%=ahf_StartDate.ClientID %>").val();
var end_date = $("#<%=ahf_EndDate.ClientID %>").val();
var coursewareName = $("#<%=coursewareName.ClientID %>").val();
$("#<%=txt_startTime.ClientID %>").val(start_date);
$("#<%=txt_endTime.ClientID %>").val(end_date);
var _coursewareName = "";
var _startDate = "";
var _endDate = "";
if (_searFlag) {
_coursewareName = coursewareName;
_startDate = start_date;
_endDate = end_date;
}
//处理制作中首页展示
var pageindex = 1;
$('#makingcount').html(pageindex);
var ss_table = "";
$.ajax({
type: "post",
url: "AjaxMaking.aspx",
data: {
"pageIndex": pageindex,
"pageSize": pagesize,
"IsPublish": 0,
"CoursewareName": _coursewareName,
"StartDate": _startDate,