摘要: var constantize = (obj) => { Object.freeze(obj); Object.keys(obj).forEach( (key, i) => { if ( typeof obj[key] === 'object' ) { constantize( obj[key] ); } }); }; 阅读全文
posted @ 2018-07-31 15:57 tt-wedos 阅读(177) 评论(0) 推荐(0) 编辑