📅  最后修改于: 2022-03-11 15:04:04.478000             🧑  作者: Mango
function tabuada(){
var num = parseInt(document.getElementById("num").value);
var resposta = document.getElementById('resposta');
var tabuada='';
for(var count=1; count<=10 ; count++)
tabuada += num+" x "+count+" = "+
num*count+"
";
resposta.innerHTML = tabuada;
}