摘要: ###typeof类型检测我们下来看看他们的类型分别是什么:```javascript alert(typeof(false) === 'boolean');//true alert(typeof(0) === 'number');//true alert(typeof("") =... 阅读全文
posted @ 2015-03-04 16:03 青青flye 阅读(5985) 评论(0) 推荐(1)
摘要: JavaScript的比较和逻辑运算符用于测试 true 或 false。比较运算符在逻辑语句中使用,以测定变量或值是否相等。例如给定 x=5,下面的表格解释了比较运算符:![](http://images.cnitblog.com/blog2015/629726/201503/0415455711... 阅读全文
posted @ 2015-03-04 15:45 青青flye 阅读(735) 评论(0) 推荐(0)
摘要: 上篇文章比较了"?,="三者的优先级:**"?">"=">","**今天继续学习"++,--,&&,||"四者的优先级,强化JavaScript运算符基础。首先上图一张,运算符的比较:![](http://images.cnitblog.com/blog2015/629726/201503/0415... 阅读全文
posted @ 2015-03-04 15:20 青青flye 阅读(928) 评论(0) 推荐(0)