第十二天简书

>console.log("bbc" < "b"); //false (第一位一样,看第二位,第一个有第二位,第二个没有第二位)
console.log("abc"< "b"); //true
console.log("11"<"5"); //true

>+"5"转换成数字

##Unicode编码:
>在字符串中使用转义字符输入Unicode编码\u四位编码
console.log("\u2Fd2")
在网页中使用unicode编码:
&#编码;
<h1 style="font-size:200px;color:red;">&#9760;</h1>

#####* 相等(类型自动转换)==
>console.log(NaN==任何值); //false
>######判断是否为NaN
>console.log(isNaN(值))

#####* 全等(类型不自动转换)===
>类型不一样直接返回false
####*不全等
>类型不一样直接true

>a>b ? 满足时 : 不满足时;

>除了空块是false其他字符串都是true

猜你喜欢

转载自www.cnblogs.com/lining5325/p/9879444.html
今日推荐