kw155
2017-09-02 11:17
为什么输出正常,慕课却提示我有错误?


<!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=utf-8" />
<title>逻辑或</title>
<script type="text/javascript">
var numa,numb,jq1;
numa=50;
numb=55;
jq1=numa>numb || numa==numb;
document.write("jq1的值是:"+jq1+"<br>");
</script>
</head>
<body>
</body>
</html>
jq1=numa>numb||numa==numb;不需要空格
运行没问题的,只是会提示错误而已
用自己编译器测试比较好! 这个毕竟有很多BUG的!
11行
jq1=numa>numb || numa==numb;
||左右两边没有空格符
JavaScript进阶篇
469182 学习 · 22584 问题
相似问题