JS判断json中某个key是否存在

if(json.hasOwnProperty("KEY")){

}

猜你喜欢

转载自blog.csdn.net/jewely/article/details/77650517