查看“JS案例:逻辑与关系运算符使用实例”的源代码
←
JS案例:逻辑与关系运算符使用实例
跳转至:
导航
,
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
<nowiki><!doctype html> <html> <head> <meta charset="utf-8"> <title>逻辑运算符和关系运算符测试示例</title> </head><body><pre> <script type="text/javascript"> var a=5,b=6,result; document.writeln("a=5,b=6"); document.writeln(" "); document.write("a<b&&a<=b = "); result= a<b&&a<=b; document.writeln(result); document.write("a<b&&a>b = "); result= a<b&&a>b; document.writeln(result); document.write("a<b||a>b = "); result= a<b||a>b; document.writeln(result); document.write("a>b||a>=b = "); result= a>b||a>=b; document.writeln(result); document.write("!(a<b) = "); result= !(a<b); document.writeln(result); document.write("!(a>b) = "); result= !(a>b); document.writeln(result); </script> </pre></body></html> </nowiki>
返回至
JS案例:逻辑与关系运算符使用实例
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息