<html>
<head></head>
<body>
<script type = "text/javascript">
var x = 5;
var y = 8;
if (x < 6)
{
document.write("They are equal");
}
else
{
document.write{"They are NOT equal");
}
</script>
</body>
</html>
答案 0 :(得分:12)
我认为你有语法错误:
document.write{"They are NOT equal");
应该是
document.write("They are NOT equal");