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}"

参考答案:


齐德龙
28 声望5 粉丝

专注于前端技术的学习与分享!