Comments (2)
Switch语句
-
"case" 分组 共享同一段代码的几个case分支可以被分为一组。(其实是 switch 语句没有 break 时的副作用)
-
类型 case的相等是严格相等,所以说 字符串的‘0‘ 和 数字 0 是不会匹配的
from font-end-tips.
For..in For..of
首先 forof是es6新增的,对于ie是不兼容的。
For in
- forin 遍历可枚举属性对象用的,数组还是foreach吧,或者for of
- 如果有可枚举的属性都会打印出来属性名,所以慎用(enumerable为true 的)
For of
- 迭代的是值,数组返回所有数组元素的值,而字符串则是所有的字符
from font-end-tips.
Related Issues (17)
- CSS零碎知识点
- JS知识点 HOT 7
- 从输入URL到按下回车后后浏览器加载都发生了什么?
- 小程序的一些知识点和坑 HOT 11
- 微信小程序开发入门与实践 笔记 HOT 3
- PC端用Vue-element-template搭建的后台管理系统 HOT 9
- vue-admin-element后台管理系统登录模块分析
- CSS世界
- 《高效前端 WEB高效编程优化与实践》笔记 HOT 3
- JS基础知识 —— 值的比较 HOT 1
- JS基础知识 —— 数据类型 HOT 5
- HTTP —— 基本知识
- NodeJS —— 基础知识
- JS 基础知识 —— 错误处理
- DOM —— 基础 扩展 HOT 4
- JS基础知识 —— 事件 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-end-tips.