标签:obj let div 一个 data free UNC nbsp ons
function deepConst(data){ Object.freeze(data); for(let key in data){ let prop = data[key]; if(!data.hasOwnProperty(key) || !(typeof prop === "object") || Object.isFrozen(prop)){ continue; } deepConst(prop); } }
标签:obj let div 一个 data free UNC nbsp ons
原文地址:https://www.cnblogs.com/chenzeyongjsj/p/10368461.html