頁面自動重新整理

2021-09-12 05:01:38 字數 2296 閱讀 9679

var gunlist=;

setinterval(function() );

$.ajax(,

traditional: true, //解決傳遞陣列的問題

async: false,

datatype: 'json',

success: function(result)*/

}});

$.each(gunlist,function(index,value) break;

case 1: break;

//case 2: break;

case 2:

case 3:

case 4:

case 5: break;

case 6: break;

case 100: break;

} $(that).find('td[data-field="state"] > div').text(state);

$(that).find('td[data-field="soc"] .layui-progress-bar').css("width",value.soc+'%');

$(that).find('td[data-field="soc"] .layui-progress-bar span').text(value.soc+'%');

$(that).find('td[data-field="outpower"] > div').text(value.outpower);

$(that).find('td[data-field="money"] > div').text(value.money);

$(that).find('td[data-field="mobile"] > div').text(value.mobile);

$(that).find('td[data-field="timeamount"] > div').text(value.timeamount);

$(that).find('td[data-field="chargemoney"] > div').text(value.chargemoney);

$(that).find('td[data-field="servicemoney"] > div').text(value.servicemoney);

$(that).find('td[data-field="v"] > div').text(value.chargevoltage);

$(that).find('td[data-field="a"] > div').text(value.chargecurrent);

$(that).find('td[data-field="starttime"] > div').text(getnowformatdate(value.starttime));

})}, 5000);

運營商

電站名稱

電槍編號

充電槍狀態

手機號充電時長(min)

充電soc

已充電量(kw.h)

消費總金額(元)

電費(元)

服務費(元)

充電電壓(v)

充電電流(a)

開始充電時間

3.後台**

/**

* 電槍實時監控(列表)

* * @param model

* @param page

* @param station

* @return

*/@ignore

@responsebody

public listrefreshguninfo(string gunlists)

mapmap = new hashmap();

map.put("gunlists", com.parwa.web.util.stringutils.arraytoformatstr(gunlists, ","));

if(refreshgunlist.size() !=0)

gunstate = postedserviceimpl.getgunstate(pilechargeinfovo.getpilenum(), pilechargeinfovo.getgunsort());

} catch (exception e)

pilechargeinfovo.setstate(integer.valueof(gunstate));

}} return refreshgunlist;

}

頁面的自動重新整理以及跳轉

當我們在做網頁時,有的時候想讓網頁自動不停重新整理,或者過一段時間自動跳轉到另外乙個你自己設定的頁面?其實實現這個效果不算難。一下 給大家參考,互相學習。1 頁面自動重新整理 把如下 加入頭部檔案 中 content 20 其中20指每隔20秒重新整理一次頁面.2 頁面自動跳 把如下 加入頭部檔案 ...

頁面的自動重新整理以及跳轉

當我們在做網頁時,有的時候想讓網頁自動不停重新整理,或者過一段時間自動跳轉到另外乙個你自己設定的頁面?其實實現這個效果不算難。一下 給大家參考,互相學習。第一 頁面自動重新整理 把如下 加入頭部檔案 中 其中20指每隔20秒重新整理一次頁面.第二 頁面自動跳 把如下 加入頭部檔案 中 其中20指隔2...

Js控制頁面重新整理(區域性重新整理 全頁面重新整理)

get方法,post方法,getjson方法,ajax方法如下 前兩種使用方法基本上一樣 get default.php function data getscript方法 getscript function 1000 animate 1000 getjson只是返回的資料型別不一樣 getjso...