博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ajax---
阅读量:6770 次
发布时间:2019-06-26

本文共 1990 字,大约阅读时间需要 6 分钟。

hot3.png

function record_search(searchContent, pageSize, pageNo, status, orderBy, desc, createTimeStart, createTimeEnd) {    $.ajax({        type: "post",        url: getRootPath() + "/retail/ajaxGetRetailPage",        data: {searchContent, pageNo,  pageSize,  status, orderBy, desc, createTimeStart, createTimeEnd},        dataType: "json",        beforeSend: function () {            $("#searchContent-tbody").html('
' + '
' + '
' + '
' + '
'); }, success: function (data) { if (data.result && data.result == "authFalse") { window.location.href = getRootPath() + "/" + data.url; } else { //list数据处理 data = data.pageInfo; //页码处理 page_handle(data, $("#sms-current-page"), $("#page-btns").find(".current-page"), $("#page-btns").find(".total-page"), $("#page-btns").find(".total-items"), $("#page-btns").find(".pageNum-area")); //数据处理 var list = data.list; var html = ""; if (list != null && list.length > 0) { for (var i = 0; i < list.length; i++) { let retail = list[i]; html += ' ' + '' + '
' + retail.id + ' ' + '
' + formatStatus(retail.status) + ' '+ '
' + retail.customerName + ' ' + '
' + retail.mobile + ' ' + '
' + retail.payment + ' ' + '
' + getFormatDateByLong(retail.createTime) + ' '+ ''; } // } else { // html += '当前无有效数据'; // } $("#searchContent-tbody").html(html); } } });}

 

转载于:https://my.oschina.net/u/583531/blog/1620243

你可能感兴趣的文章
VB中DateDiff 函数解释
查看>>
SQL Server 数据岸问题
查看>>
python学习笔记
查看>>
BLDC(无刷直流电机)应用相关
查看>>
修复 Java 内存模型,第 1 部分——Brian Goetz
查看>>
Java知多少(19)访问修饰符(访问控制符)
查看>>
【Spring环境搭建】在Myeclipse下搭建Spring环境-web开发
查看>>
adb root : adbd cannot run as root in production builds
查看>>
IOS学习路线图
查看>>
彻底弄懂LSH之simHash算法
查看>>
【Python】ModuleNotFoundError: No module named 'matplotlib.pyplot'
查看>>
BMap:WEB 服务API
查看>>
Morris图表使用小记
查看>>
GoldenGate实时投递数据到大数据平台(3)- Apache Flume
查看>>
Linux - 配置php-fpm 以及 配置nginx支持php
查看>>
基于FPGA的线阵CCD实时图像采集系统
查看>>
php--------对象(object) 与 数组(array) 的转换
查看>>
linux下生成core dump文件方法及设置【转】
查看>>
java基础面试题
查看>>
Windows系统下MySQL添加到系统服务方法(mysql解压版)
查看>>