document.getElementById('btn').addEventListener('click', function() { window.location.href = '/home'; // 跳转到 /home 路由 });