华为ENSP配置实战:搭建模拟环境、玩转VLAN与静态路由
2026/10/6 10:55:54
function trimObjectStrings(obj) { Object.keys(obj).map(key => { if (typeof obj[key] === 'string') { obj[key] = obj[key].trim(); } else if (typeof obj[key] === 'object' && obj[key] !== null) { trimObjectStrings(obj[key]); } } return obj; }