HTML教教我怎么错了

来源:百度知道 编辑:UC知道 时间:2024/09/20 03:55:56
<html>

<body>

<script language="vbscript">

dim a,b,c

a=window.prompt(""请输入姓名")
b=window.prompt(""请输入异性姓名")
c=window.prompt("38)
document.write(a&"和"&b"的缘分指数"&c)

</script>
</body>
</html>

<script language="vbscript">

dim a,b,c

a=window.prompt("请输入姓名")
b=window.prompt("请输入异性姓名")
c="38"
document.write(a & "和" & b & "的缘分指数" & c)

</script>

a、b后面的中文字前面双引号点多了,其它的没发现