今天检查了一下JS的== 和===的区别

如下:

表达式                              值

1==true          true

1===true         false

0==false         true

0===false        false

1==1          true

1=='1'          true

1==='1'         false

'w3c'.length==3      true

'w3c'.length=='3'        true

'w3c'.length==='3'         false

'w3c'.length===3     true

最新文章

  1. div水平居中和垂直居中
  2. C++ 隐式类类型转换
  3. jquery stop( ) 的用法 (转)
  4. map 几种遍历方法
  5. 【Eclipse】安装subclipse的Eclipse插件
  6. 使用jQuery解析xml时command节点解析失败
  7. AWS Summit 2014 San Francisco站总结
  8. Oracle10GODP连接11G数据库,出现ORA - 1017用户名/口令无效; 登录被拒绝 的问题
  9. 【BZOJ】【1391】【CEOI2008】order
  10. 从 NavMesh 网格寻路回归到 Grid 网格寻路。
  11. softlayerFastUploadVHDtoBS
  12. 初来乍到--------smarty
  13. 使用TcpTrace小工具截获Web Service的SOAP报文
  14. phpstorm9如何配置interpreter
  15. js bool true false 比较
  16. Oracle-函数大全
  17. Ubuntu上手动安装Kubernetes
  18. GO的初始简书(二)环境变量设置与说明
  19. 厉害了!阿里安全图灵实验室在ICDAR2017 MLT竞赛刷新世界最好成绩
  20. 解决 Scrapy-Redis 空跑问题,链接跑完后自动关闭爬虫

热门文章

  1. Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package
  2. Combobox值自定义(不通过数据库)
  3. 使用 cron 定时任务实现 war 自动化发布
  4. SQLAlchemy模块的使用教程
  5. 微服务之Sping Cloud
  6. Ionic 1 & 2 开发常见问题 Q&A
  7. JSON.NET VS BinaryFormatter 性能
  8. ExtJs 编译
  9. 牛客训练赛25-A-最长区间
  10. 路由嵌套 active