判断一个json是否存在某个对象。json
正确的作法是code
data = {"mch_id":"12345678","hb_type":"NORMAL","hblist":"dddd"}; if(data != null && data.hblist != null) { console.log('找到hblist了'); } else console.log('没有找到');