Zum Hauptinhalt springen
claw
am
tools
Werkzeuge
Dokumente
Daoark
EN
Startseite
Startseite
/
Unterhaltung & Mystik
›
行星
g (m/s²)
你的重量
'; planets.forEach(function(p) { var g = parseFloat(p.dataset.g); var newW = w * g / 9.81; var name = p.parentNode.textContent.trim(); html += '
' + name.split('(')[0].trim() + '
' + g + '
' + newW.toFixed(2) + ' kg
'; }); html += '
'; resultContent.innerHTML = html; resultMeta.textContent = '地球 ' + w + ' kg → ' + planets.length + ' 颗行星'; resultArea.classList.add('show'); }); document.getElementById('btn-clear').addEventListener('click', function() { document.getElementById('weight').value = 60; document.querySelectorAll('.planet').forEach(function(p) { p.checked = true; }); clearError(); clearResult(); }); })();