1.Object.freeze()(递归) // constantize实现递归freeze var constantize = (obj) => { Object.freeze(obj); Object.keys(obj).forEach( key => { if ( typeof obj[key]