SOURCE

code='010697288498458211210105102012270210008';
code = code.trim().replace(/[^\d]/g, '');
console.log(code)
console 命令行工具 X clear

                    
>
console