1. 程式人生 > >筆記關於html和後臺互動的問題 2018-11-07

筆記關於html和後臺互動的問題 2018-11-07

html接受後臺傳的資料也是和jsp一樣的啊,之前還以為不同呢

var consignmentItems= ${consignmentItem};
var sysTransferName = "${sysName}";
var shipToId="${shipToId}";
var shipToName="${shipToName}";

後臺傳的程式碼

model.addObject("consignmentItem", consignmentItem);
model.addObject("shipToId", shipToId);
model.addObject("shipToName", shipToName);
model.addObject(
"sysName",sysTransferName);