摘要: 1方式一 !("key" in obj) 方式二 obj.hasOwnProperty("key") //obj为json对象。 2获取不确定键的值 阅读全文