javascript运行错误
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>变量声明</title>
</head>
<body>
<center>
<h1>变量声明</h1>
<hr>
<br>
<h5>显示如下变量信息.......</h5>
<br>
<pre>
<script language="javascript">
var a;
var b1,b2,b3;
var c = 2;
var d1 =2, d2 = 5;
with(document){
writeln("a:" + a);
writeln("b1:" + b1 + "b2:" + b2 + "b3:" + b3 +);
writeln("c:"+ c);
writeln("d1:" + d1 +" "d2:" + d2 +);
}
</script>
</pre>
</center>
</body>
</html>
运行后的显示是
变量声明
--------------------------------------------------------------------------------
显示如下变量信息....... 展开
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>变量声明</title>
</head>
<body>
<center>
<h1>变量声明</h1>
<hr>
<br>
<h5>显示如下变量信息.......</h5>
<br>
<pre>
<script language="javascript">
var a;
var b1,b2,b3;
var c = 2;
var d1 =2, d2 = 5;
with(document){
writeln("a:" + a);
writeln("b1:" + b1 + "b2:" + b2 + "b3:" + b3 +);
writeln("c:"+ c);
writeln("d1:" + d1 +" "d2:" + d2 +);
}
</script>
</pre>
</center>
</body>
</html>
运行后的显示是
变量声明
--------------------------------------------------------------------------------
显示如下变量信息....... 展开
2个回答
展开全部
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>变量声明</title>
</head>
<body>
<center>
<h1>变量声明</h1>
<hr>
<br>
<h5>显示如下变量信息.......</h5>
<br>
<pre>
<script language="javascript">
var a;
var b1,b2,b3;
var c = 2;
var d1 =2, d2 = 5;
with(document){
writeln("a:" + a);
writeln("b1:" + b1 + "b2:" + b2 + "b3:" + b3 );//改
writeln("c:"+ c);
writeln("d1:" + d1 +" "+"d2:" + d2 );//改
}
</script>
</pre>
</center>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>变量声明</title>
</head>
<body>
<center>
<h1>变量声明</h1>
<hr>
<br>
<h5>显示如下变量信息.......</h5>
<br>
<pre>
<script language="javascript">
var a;
var b1,b2,b3;
var c = 2;
var d1 =2, d2 = 5;
with(document){
writeln("a:" + a);
writeln("b1:" + b1 + "b2:" + b2 + "b3:" + b3 );//改
writeln("c:"+ c);
writeln("d1:" + d1 +" "+"d2:" + d2 );//改
}
</script>
</pre>
</center>
</body>
</html>
展开全部
<script language="javascript">
var a;
var b1,b2,b3;
var c = 2;
var d1 =2, d2 = 5;
with(document){
writeln("a:" + a);
writeln("b1:" + b1 + "b2:" + b2 + "b3:" + b3 );
writeln("c:"+ c);
writeln("d1:" + d1 +" d2:" + d2 );
}
</script>
var a;
var b1,b2,b3;
var c = 2;
var d1 =2, d2 = 5;
with(document){
writeln("a:" + a);
writeln("b1:" + b1 + "b2:" + b2 + "b3:" + b3 );
writeln("c:"+ c);
writeln("d1:" + d1 +" d2:" + d2 );
}
</script>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询