日期:2014-05-16  浏览次数:20320 次

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++)