javascirpt中的错误 [英] error in javascirpt

查看:89
本文介绍了javascirpt中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我我做错了什么???

我的问题是当我在

中键入TDR号码并点击OK我可以看不到桌子


迎接砂光机


< html>

< head>

< title> Untitled Document< / title>

< meta http-equiv =" Content-Type"含量=" text / html的; charset = iso-8859-1">

< / head>


< body bgcolor =" #FFFFFF" text ="#000000">


< script>

<! -

/ *个性化脚本第二部分由Jason Cooper提供

如果保留信用,可以使用/修改* /

alert(" vul alle informatie correct in !!!) )

/ *提示可能会改变* /

var tdr = prompt(Wat Is Het TDR Nummer?,") >
// - >

< / script>

< script>


< p>& nbsp;< / p>

< p>& nbsp;< / p>

< p>& nbsp;< / p>

< p>< br>

< / p>

< table width =" 362"边界=" 1 QUOT; BGCOLOR = QUOT;#FFFFFF" bordercolor ="#000000">

< tr>

< td width =" 25%"> TDR:< / td>

< td width =" 75%"> document.write(tdr)< / td>

< / tr>

< / table>

< br>

< table width =" 362"边界=" 1 QUOT; BGCOLOR = QUOT;#FFFFFF" bordercolor ="#000000">

< tr bordercolor ="#000000" bgcolor =" #FFFFFFF">

< td bordercolor =" #FFFFFF" width =" 25%">< font face =" Arial,Helvetica,

sans-serif">< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,

sans-serif"> SF。< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,

sans-serif"> CYL 。< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,

sans-serif"> AX。< / font>< / td>

< / tr>

< tr bordercolor ="#000000" bgcolor =" #FFFFFFF">

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif"> R< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font> < / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td> ;

< / tr>

< tr bordercolor ="#000000" bgcolor =" #FFFFFF">

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif"> L< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font> < / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td> ;

< / tr>

< / table>

< br>

< /脚本>

< hr>

< font size =" 1" color ="#999999">& copy; Sander de Maaijer< / font>

< / body>

< / html>

解决方案

您好,


错误是由以下代码引起的:

var tdr = prompt(" Wat Is Het TDR Nummer?","")
// - >
< / script>
<脚本>

< p>& nbsp;< / p>
< p>& nbsp;< / p>
< p>& NBSP;< / p为H.


包含< script>的行必须收起来!

所以正确的代码是:

var tdr = prompt(Wat Is Het TDR Nummer?,") /> // - >
< / script>

< p>& nbsp;< / p>
< p>& nbsp; < / p>
< p>& nbsp;< / p>



好​​的问候来自

Thomas


对不起,我没有看到转移


" sander de maaijer" < SA *************** @ hccnet.nl> schreef in bericht

news:41 ********************* @ reader10.nntp.hccnet。 nl ...

任何人都可以告诉我我做错了什么???
我的问题是当我在
中键入TDR号码并点击OK我看不到桌子

迎接砂光机

< html>
< head>
< title> Untitled Document< / title> ;
< meta http-equiv =" Content-Type"含量=" text / html的; charset = iso-8859-1">
< / head>

< body bgcolor =" #FFFFFF" text ="#000000">

< script>
<! -
/ *个性化脚本第二部分作者:Jason Cooper 如果保留信用可以使用/修改* /
警报(!!!中的漏报信息正确)
/ *提示可能会改变* /
var tdr =提示(Wat Is Het TDR Nummer?,")
// - >
< / script>
< script>

< p>& nbsp;< / p>
< p>& nbsp;< / p>
< p>& nbsp;< / p> ;
< p>< br>
< / p>
< table width =" 362"边界=" 1 QUOT; BGCOLOR = QUOT;#FFFFFF" bordercolor ="#000000">
< tr>
< td width =" 25%"> TDR:< / td>
< td width = < 75%"> document.write(tdr)< / td>
< / tr>
< / table>
< br>
< ; table width =" 362"边界=" 1 QUOT; BGCOLOR = QUOT;#FFFFFF" bordercolor ="#000000">
< tr bordercolor ="#000000" bgcolor =" #FFFFFFF">
< td bordercolor =" #FFFFFF" width =" 25%">< font face =" Arial,Helvetica,
sans-serif">< / font>< / td>
< td width = 25%>< font face =" Arial,Helvetica,
sans-serif"> SF。< / font>< / td>
< td width = < 25%">< font face =" Arial,Helvetica,
sans-serif"> CYL。< / font>< / td>
< td width = < 25%">< font face =" Arial,Helvetica,
sans-serif"> AX。< / font>< / td>
< / tr>
< tr bordercolor ="#000000" bgcolor =" #FFFFFF">
< td width =" 25%">< font face =" Arial,Helvetica,
sans-serif"> R< /字体>< / TD> < td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>
< td width =" ; 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>
< td width =" 25%"> ;< font face =" Arial,Helvetica,sans-serif">< / font>< / td>
< / tr>
< tr bordercolor ="#000000" ; bgcolor =" #FFFFF">
< td width =" 25%">< font face =" Arial,Helvetica,
sans-serif"> L< /字体>< / TD> < td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>
< td width =" ; 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>
< td width =" 25%"> ;< font face =" Arial,Helvetica,sans-serif">< / font>< / td>
< / tr>
< / table>
< br>
< / script>
< hr>
< font size =" 1" color ="#999999">& copy; Sander de Maaijer< / font>
< / body>
< / html>



这是wat我现在有

但是它不工作

< html>

< ; head>

< title> Untitled Document< / title>

< meta http-equiv =" Content-Type"含量=" text / html的; charset = iso-8859-1">

< / head>


< body bgcolor =" #FFFFFF" text ="#000000">


< script>

alert(&!'vul alle informatie correct in !!!」 ;)


var tdr = prompt(Wat Is Het TDR Nummer?,")

< / script>



< p>& nbsp;< / p>

< p>& nbsp;< / p>

< p>& nbsp;< / p>

< p>< br>

< / p>

< table width =" 362"边界=" 1 QUOT; BGCOLOR = QUOT;#FFFFFF" bordercolor ="#000000">

< tr>

< td width =" 25%"> TDR:< / td>

< td width =" 75%"> document.write(tdr)< / td>

< / tr>

< / table>

< br>

< table width =" 362"边界=" 1 QUOT; BGCOLOR = QUOT;#FFFFFF" bordercolor ="#000000">

< tr bordercolor ="#000000" bgcolor =" #FFFFFFF">

< td bordercolor =" #FFFFFF" width =" 25%">< font face =" Arial,Helvetica,

sans-serif">< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,

sans-serif"> SF。< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,

sans-serif"> CYL 。< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,

sans-serif"> AX。< / font>< / td>

< / tr>

< tr bordercolor ="#000000" bgcolor =" #FFFFFFF">

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif"> R< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font> < / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td> ;

< / tr>

< tr bordercolor ="#000000" bgcolor =" #FFFFFF">

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif"> L< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font> < / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td>

< td width =" 25%">< font face =" Arial,Helvetica,sans-serif">< / font>< / td> ;

< / tr>

< / table>

< br>

< hr> ;

< font size =" 1" color ="#999999">& copy; Sander de Maaijer< / font>

< / body>

< / html>

can anybody tel me what i do wrong ???
my problem is that when i type the "TDR"number in
and click on OK i can''t see the tables

greet sander

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">


<script>
<!--
/*Personalization script part two By Jason Cooper
May Be used/modified if credit is retained*/
alert("vul alle informatie correct in !!!")
/* The prompt may be changed*/
var tdr=prompt("Wat Is Het TDR Nummer ?","")
//-->
</script>
<script>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<table width="362" border="1" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td width="25%">TDR:</td>
<td width="75%">document.write(tdr)</td>
</tr>
</table>
<br>
<table width="362" border="1" bgcolor="#FFFFFF" bordercolor="#000000">
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td bordercolor="#FFFFFF" width="25%"><font face="Arial, Helvetica,
sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">SF.</font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">CYL.</font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">AX.</font></td>
</tr>
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td width="25%"><font face="Arial, Helvetica, sans-serif">R</font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
</tr>
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td width="25%"><font face="Arial, Helvetica, sans-serif">L</font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
</tr>
</table>
<br>
</script>
<hr>
<font size="1" color="#999999">&copy;Sander de Maaijer</font>
</body>
</html>

解决方案

Hello,

the error is caused within the following piece of code:

var tdr=prompt("Wat Is Het TDR Nummer ?","")
//-->
</script>
<script>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
The line with "<script>" must pe put away!
So the sorrect code is:
var tdr=prompt("Wat Is Het TDR Nummer ?","")
//-->
</script>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>


Nice greetings from
Thomas


sorry i don''t see the diverance

"sander de maaijer" <sa***************@hccnet.nl> schreef in bericht
news:41*********************@reader10.nntp.hccnet. nl...

can anybody tel me what i do wrong ???
my problem is that when i type the "TDR"number in
and click on OK i can''t see the tables

greet sander

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">


<script>
<!--
/*Personalization script part two By Jason Cooper
May Be used/modified if credit is retained*/
alert("vul alle informatie correct in !!!")
/* The prompt may be changed*/
var tdr=prompt("Wat Is Het TDR Nummer ?","")
//-->
</script>
<script>

<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<table width="362" border="1" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td width="25%">TDR:</td>
<td width="75%">document.write(tdr)</td>
</tr>
</table>
<br>
<table width="362" border="1" bgcolor="#FFFFFF" bordercolor="#000000">
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td bordercolor="#FFFFFF" width="25%"><font face="Arial, Helvetica,
sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">SF.</font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">CYL.</font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">AX.</font></td>
</tr>
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td width="25%"><font face="Arial, Helvetica, sans-serif">R</font></td> <td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
</tr>
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td width="25%"><font face="Arial, Helvetica, sans-serif">L</font></td> <td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
</tr>
</table>
<br>
</script>
<hr>
<font size="1" color="#999999">&copy;Sander de Maaijer</font>
</body>
</html>



this is wat i now have
but its not working
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">


<script>
alert("vul alle informatie correct in !!!")

var tdr=prompt("Wat Is Het TDR Nummer ?","")
</script>


<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<table width="362" border="1" bgcolor="#FFFFFF" bordercolor="#000000">
<tr>
<td width="25%">TDR:</td>
<td width="75%">document.write(tdr)</td>
</tr>
</table>
<br>
<table width="362" border="1" bgcolor="#FFFFFF" bordercolor="#000000">
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td bordercolor="#FFFFFF" width="25%"><font face="Arial, Helvetica,
sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">SF.</font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">CYL.</font></td>
<td width="25%"><font face="Arial, Helvetica,
sans-serif">AX.</font></td>
</tr>
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td width="25%"><font face="Arial, Helvetica, sans-serif">R</font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
</tr>
<tr bordercolor="#000000" bgcolor="#FFFFFF">
<td width="25%"><font face="Arial, Helvetica, sans-serif">L</font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
<td width="25%"><font face="Arial, Helvetica, sans-serif"></font></td>
</tr>
</table>
<br>
<hr>
<font size="1" color="#999999">&copy;Sander de Maaijer</font>
</body>
</html>


这篇关于javascirpt中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆