C语言链表与文件操作实战:手把手实现学生信息管理系统
2026/8/29 14:00:33
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; }