本人刚刚开始自学js,本意是根据输入提示框输入的数字输出一个乘法表,比如输入1就输出1*1=1....到1*9=9,输入5就输出5*5=25...到5*9=45。现在不知道问题出在哪....
<!DOCTYPE html>
<html lang = "en">
<head>
<title>excercise1</title>
</head>
<body> <script> function chengfachart(chengshu0){
var chengshu0 = parseFloat(prompt("enter chengshu","1"));
var chengshu1 = chengshu0;
for(var chengshu1 = chengshu0;chengshu1 <= 8;chengshu1++);
{
var deshu = chengshu1*chengshu0;
document.write(chengshu1+"\*"+chengshu0+"\="+deshu+"<br/>");
} }
chengfachart() ;
</script>
</body>
</html>
蜂之谷
我要开发地图系统
相关分类