我想使用这个功能function setPlayerInternalData(playerid, key, value) { server.UpdateUserInternalData({ playfabid: playerid, data: { key: value } });}其中,密钥由我提交给它的任何字符串设置。它对价值有效,但idk如何使其对钥匙有效。
2 回答

富国沪深
TA贡献1790条经验 获得超9个赞
用于[]包装密钥。
let myKey = 'three';
let myValue = '4';
let myObj = {
[myKey]: myValue
};
console.log(myObj);
添加回答
举报
0/150
提交
取消