0
我有下Axios公司呼叫处理JSON:如何从爱可信呼叫斯卡拉
const userInfo = {};
userInfo['id'] = row['id'];
userInfo[cellName] = cellValue;
axios.post(
getServerInfo() + '/updateUser', userInfo
). .....
其中:
function getServerInfo() {
return 'http://'+ window.location.hostname + ':' + window.location.port;
}
我需要写在斯卡拉控制器打印用户信息的信息在斯卡拉终端。如何才能做到这一点?我需要能够将userInfo的每个字段值都变为Scala对象。