js Object key All In One
// 字面符号 / 初始化符号
obj = {};
obj[0] = 'a';
// 'a'
obj;
// {0: 'a'}0: "a"[[Prototype]]: Object
obj[false] = true;
// true
obj;
// {0: 'a', false: true}0: "a"false: true[[Prototype]]: Object
obj[0];
// 'a'
obj[false];
// true
Object literal syntax
vs JSON
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/Object
refs
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载
标签:Web,JavaScript,false,Object,js,key,obj,true From: https://www.cnblogs.com/xgqfrms/p/16721225.html