📄 tu1.11.htm
字号:
<HTML>
<HEAD>
<TITLE>比较运算符</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
var a=2;
var b=3;
var c="2";
document.write("a=2, b=3, c='2'<P>");
document.write("小于:a<b="); /*在网页中显示 < 号这样的特殊字符需要采用字符实体的形式,详细信息请参阅其他有关 HTML 的参考书。*/
document.write(a<b); document.write("<BR>");
document.write("小于等于:a<=b="); document.write(a<=b); document.write("<BR>");
document.write("大于:a>b="); document.write(a>b); document.write("<BR>");
document.write("大于等于:a>=b="); document.write(a>=b); document.write("<BR>");
document.write("等于:a = =c="); document.write(a == c); document.write("<BR>");
document.write("严格等于:a = = = c ="); document.write(a === c);
document.write("<BR>");
document.write("不等于:a ! = c ="); document.write(a != c); document.write("<BR>");
document.write("严格不等于:a ! = = c ="); document.write(a !== c);
// -->
</SCRIPT>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -