当前位置: 代码迷 >> JavaScript >> javascript 小问,该怎么解决
  详细解决方案

javascript 小问,该怎么解决

热度:51   发布时间:2012-03-21 13:33:15.0
javascript 小问
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
<script language="javascript" type="text/javascript">
function writeTimesTable(timesTable,timesByStart,timesByEnd)
{
for(;timesStart <= timesByEnd;timesByStart++)
  {
  document.write(timesTable +"*" +timesByStart +"="+timesByStart*timesTable+"<br>");
}
}
writeTimesTable(4,4,9);
</script>
</body>
</html>


看看哪里有错没为啥在浏览器中不显示啊

------解决方案--------------------
timesStart > 为 timesByStart
for(;timesByStart <= timesByEnd;timesByStart++)
  相关解决方案