Javascript基础教程之比较操作符
作者:hebedich 时间:2024-04-10 16:15:05
和其他语言一样,JavaScript也有条件语句对流程上进行判断。包括各种操作符合逻辑语句
比较操作符
常用的比较操作符有 等于 == , 不等于!= , 大于 >, 小于 <,大于等于 >= ,小于等于 <=
document.write("Study" == "study");//false
document.write("Study" < "study"); //false
document.write("Study".toUpperCase())//STUDY
document.write("Study".toLowerCase() == "study".toLowerCase()+"<br>");//true 利用toLowerCase()和toUpperCase()进行大小写转换
标签:Javascript,比较操作符
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
mysql主键id的生成方式(自增、唯一不规则)
2024-01-14 20:20:27
![](https://img.aspxhome.com/file/2023/7/119217_0s.png)
详解SQL Server中的事务与锁问题
2024-01-12 16:26:12
![](https://img.aspxhome.com/file/2023/7/104087_0s.jpg)
MySQL数据库中的各种乱码及其解决方法
2008-12-17 16:29:00
git pull时冲突的几种解决方式(小结)
2022-10-12 04:53:53
![](https://img.aspxhome.com/file/2023/3/131883_0s.png)
SQL Server查询结果导出到EXCEL表格的图文教程
2024-01-23 10:40:22
![](https://img.aspxhome.com/file/2023/4/96224_0s.jpg)
html风格tooltip效果的实现
2010-04-08 13:00:00
运用Python快速的对MySQL数据库进行重命名
2024-01-17 22:36:25
Python 异步如何使用等待有时间限制协程
2022-02-12 09:29:28
eslint常见的一些报错及解决方法
2024-05-11 09:09:32
![](https://img.aspxhome.com/file/2023/0/126580_0s.png)
GoJs分组绘图模板go.Group使用示例详解
2024-04-19 11:02:24
![](https://img.aspxhome.com/file/2023/4/136244_0s.jpg)
收集的ORACLE函数大全
2010-07-16 12:58:00
Python报错:对象不存在此属性的解决
2023-05-30 20:12:56
![](https://img.aspxhome.com/file/2023/4/75254_0s.png)
详解 Go 语言中 Map 类型和 Slice 类型的传递
2024-05-29 22:07:11
![](https://img.aspxhome.com/file/2023/0/123590_0s.png)
js实现类bootstrap模态框动画
2024-04-18 09:31:12
tensorflow之读取jpg图像长和宽实例
2023-10-12 11:57:41
![](https://img.aspxhome.com/file/2023/2/128582_0s.jpg)
放弃 Python 转向 Go语言有人给出了 9 大理由
2021-04-14 20:28:49
![](https://img.aspxhome.com/file/2023/7/76757_0s.jpg)
python如何进入交互模式
2023-08-10 19:57:12
![](https://img.aspxhome.com/file/2023/6/127576_0s.jpg)
Python PyQt拖动控件对齐到网格的方法步骤
2022-05-04 19:25:00
![](https://img.aspxhome.com/file/2023/6/97316_0s.png)
node+koa实现数据mock接口的方法
2024-05-09 14:49:31
![](https://img.aspxhome.com/file/2023/8/129378_0s.png)
Sql server中时间查询的一个比较快的语句
2008-12-29 14:16:00