js对象转换为json格式时,js对象属性中有值为null和undefined注意事项 当属性值为null时: 当属性值为undefined时: 只有当属性值为未定义时, js对象转换成json格式时会忽略该属性。