时间差都是一样的算法、有JS计算、有SQL语句计算
SQL语句原创:https://www.cnblogs.com/tianxiaotian/p/10277141.html
效果图:
js代码:
//界面加载
$(document).ready(function() {
//SetTime();//循环1
functionfunction();
});
function functionfunction(){
$.post("路径",{
},
function(Adata) {
console.log(Adata.data);
if (Adata.code == "200") {
var ListHtml = "";
if (Adata.data.length == "0") {
ListHtml +='<li><h3 class="clearfix">暂无数据</h3></li>';
}else{
for (var i = 0; i < Adata.data.length; i++) {
myArray[i] = YGAreadata.data[i].StartTime;
myArray2[i] = YGAreadata.data[i].EmploymentAdMeetingID;
ListHtml