小编luk*_*jkw的帖子

为什么JSON都是大写的

我知道函数通常用驼峰表示,即

function myFunctionName(){
    return false;
}
Run Code Online (Sandbox Code Playgroud)

和首字母大写的构造函数,即

function Person(name){
  this.name = name;
}
Run Code Online (Sandbox Code Playgroud)

但是为什么JSON拼写在函数中的所有大写字母中:

JSON.stringify(someValue);
Run Code Online (Sandbox Code Playgroud)

我知道这可能是一个毫无意义的问题,但我似乎无法在网上找到答案.

谢谢

javascript json naming-conventions

2
推荐指数
1
解决办法
1041
查看次数

标签 统计

javascript ×1

json ×1

naming-conventions ×1