注册 登录
编程论坛 JavaScript论坛

看看运行后为什么不能显示?

无诲今生 发布于 2009-09-23 14:51, 546 次点击
哪位看看以下的程序为什么运行后什么都不显示?
<html>
<head>
<title>
company objects program
</title>
<script language=javascript>
function Company()
{
,inc.";
services";
}

function Sales()
{
this.territory="north america";
this.sales_reps="50";
}

Sales.prototype=new Company();

function Production()
{
this.facilities="new york chicago,and los angeles";
this.personnel="100";
}

Production.prototype=new Company();
</script>
</head>


<body>


<script language=javascript>

sales_object=new Sales();
document.writeln(sales_);
document.writeln("Producer of"+sales_);
document.write("with"+sales_object.sales_reps+"sales reps");
document.writeln("in"+sales_object.territory);

production_object=new Production();
document.write(production_);
document.writeln("has"+production_object.personnel+"production personnel");
document.write("with facilities in"+production_object.facilities);

<script>


</body>
</html>
3 回复
#2
无诲今生2009-09-23 15:27
晕,我知道哪错了,这<script>应该改为:</script>
我怎么老是范这些低级错误啊!
#3
foktime2009-09-23 15:51
...不贴看不出来 一帖自己就发现了..
#4
歌革2009-09-25 11:07
把分给我们两分了吧~  
1