答案 0 :(得分:1)
它是所有Mac系统上的let json = {"name": "Servers Rotation","version": 1.0,"prefix": ".svr","servers": { "server1": {"svr": "01x","status": 1,"type": "all" },"server2": {"svr": "02p","status": 1, "type": "all" }, "server3": { "svr": "03z", "status": 1,"type": "all" } }}
Object.values(json.servers).forEach(({status,svr}) => {
status === 1 ? alert(svr + " enabled!") : alert(svr + " disabled")
})
键(向左或向右)的符号。