共计 268 个字符,预计需要花费 1 分钟才能阅读完成。
const settings = {
username: 'lydiahallie',
level: 19,
health: 90
};
const data = JSON.stringify(settings, ['level', 'health']);
console.log(data);
A: "{"level":19,"health":90}"
B: "{"username":"lydiahallie"}"
C: "{"level","health"]"
D: "{"username":"lydiahallie","level":19,"health":90}"
参考答案:
正文完
发表至: javascript
2021-12-13