gpt4 book ai didi

javascript - 在javascript中, `{foo : "bar"}` and ` {"foo":"bar"}`有什么区别?

转载 作者:行者123 更新时间:2023-11-30 07:03:09 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
What is the difference between object keys with quotes and without quotes?

下面a和b有什么区别?

var a = {foo : "bar"};
var b = {"foo" : "bar"};

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com