为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

1 回答

同学你的代码显示是jq1的值是:false

要想两者只要成立一个就是true,代码如下

<!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>

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信