官术网_书友最值得收藏!

Booleans

There are only two values that belong to the Boolean data type: the values true and false, used without quotes:

> var b = true; 
> typeof b;
"boolean"
> var b = false; 
> typeof b;
"boolean"

If you quote true or false, they become strings:

> var b = "true"; 
> typeof b;
"string"
主站蜘蛛池模板: 霍林郭勒市| 大安市| 静安区| 和平县| 周至县| 大同市| 新晃| 苗栗市| 读书| 安康市| 祁连县| 石棉县| 洱源县| 丽水市| 达日县| 同仁县| 九江县| 临夏市| 上思县| 桦川县| 玉山县| 彩票| 富民县| 乐安县| 玉田县| 津市市| 凤山市| 宁武县| 北海市| 香格里拉县| 汾阳市| 东至县| 易门县| 永胜县| 错那县| 开化县| 凤阳县| 兴城市| 蚌埠市| 三门峡市| 大新县|