/** * 对象转换成一个新的对象 * @param object * @private */ function _yh_tranformObject(object){ if(object == null || object == undefined || object == '') return object; const newObject = {}; for(const o in object){ if( typeof(object[o])=="object" ){ newObject[o] = _yh_tranformObject(object[o]); }else{ newObject[o] = object[o]; } } return newObject ; }