欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Javascript基礎(chǔ)教程之比較操作符

 更新時間:2015年01月18日 11:33:15   投稿:hebedich  
這篇文章主要介紹了Javascript基礎(chǔ)教程之比較操作符,需要的朋友可以參考下

和其他語言一樣,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()進行大小寫轉(zhuǎn)換

以上就是關(guān)于javascript比較操作符的相關(guān)內(nèi)容了,希望小伙伴們能夠喜歡

相關(guān)文章

最新評論