Javascript基础教程之比较操作符
和其他语言一样,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比较操作符的相关内容了,希望小伙伴们能够喜欢