W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
1.js代碼
function update_save(frId,tabId){
var formData = $('#'+frId).serializeArray();
var brgKeyList = ["bridgeaqttype","bridgeqdtype","bridgezztype","bridgethgrade","bridgedtfzsstype"];
var bridges =[{"deptcode":"4121091","deptname":"開發(fā)區(qū)住建局","cityname":"許昌市"}]; ;
var jsonData= {"brgKeyList[]":brgKeyList,"brgeJStr":JSON.stringify(bridges)};
$.ajax({
url : 'bridge_test.fdo',
type : "POST",
data :jsonData,
// async : false,
dataType : 'json',
success : function(returndate, status) {
debugger;
dateObj = eval('(' + returndate + ')');
var flag = dateObj.flag;
var msg = dateObj.msg;
alert('modifyPan',' 修改數(shù)據(jù)',msg);
}
});
}
2.java代碼(action層)
public class TBridgeAction{
private String[] brgKeyList;
private String brgeJStr;
get,set方法省略.....
public String tableModify() throws Exception{
JSONArray jsonList = JSONArray.fromObject(brgeJStr );
}
}
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: