我正在使用JQuery DataTable进行服务器端处理。我写了这段代码:
#Prompt for and read user binary input
user_bin = list(input('\nPlease enter binary number: '))
user_bin_list = list(user_bin)
user_bin_len = len(user_bin_list)
powers_count = len(user_bin) - 1
index = 0
decimal_num = 0
while powers_count >= 0:
decimal_num += (int(user_bin[index]))*(2**(powers_count))
index += 1
powers_count -= 1
print('\nDecimal number: ',decimal_num)
问题:当页面加载时,我需要将public List<VacationRequest> GetVacationRequestsWithProfiles(int displayStart, int displayLength, out int allDataCount, out int filteredDatacount, string searchParam = "", string searchDir = "")
{
....
switch(searchDir)
{
case "asc":
requests = requests.OrderBy(x => x.FirstName).ThenByDescending(x=>x.DateEnd).Skip(displayStart).Take(displayLength);
break;
case "desc":
requests = requests.OrderByDescending(x => x.FirstName).ThenByDescending(x=>x.DateEnd).Skip(displayStart).Take(displayLength);
break;
default:
requests = requests.OrderBy(x=>x.VacationRequestState).ThenByDescending(x=>x.DateEnd).Skip(displayStart).Take(displayLength);
break;
}
....
}
(空)搜索参数提供给此方法。我怎么解决这个问题?
这是default
代码的一部分:
JS
答案 0 :(得分:0)
因为不知道你把ajax放在哪里尝试在aoColumns之前添加这个命令行
pairs = [('G', 'H'), ('C', 'D'), ('B', 'D'), ('A', 'B'), ('B', 'C')]
那命令停止数据显示在数据中,但搜索数据后会显示希望解决你的问题