<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> </title>
<script type="text/javascript">
var k=0;
function abc()
{
for(var i=1;i<=9;++i)
{for(var j=1; j<=i;++j)
{k=i*j;
document.width(i+"*"+j+"="+k);
}
}
}
abc();
</script>
</head>
<body>
</body>
</html>
document.width 是什么?
document.write 是要写这个吧?
var k=0;
function abc(){
for(i=1,j=1;i<=9,j<=i;i++,j++){
k=i*j;
};
};
document.write(i + "*" + j + "=" + k);