We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
学前端也快一年了,最近想试试大公司的面试,然后这里把所有的知识点都整理出来,然后慢慢消化。该片总字数:1770,速读三分半,普通6分钟。有兴趣的可以关注一下我的blog
语法、数据类型、运算、对象、function、继承、闭包、作用域、原型链、事件、RegExp、JSON、Ajax、DOM、BOM、内存泄漏、跨域、异步加载、模板引擎、前端MVC、前端MVVM、路由、模块化、Http、Canvas、jQuery、EMCAScript、ES6、NodeJS、Vue、React
运算符分类:赋值运算符、比较运算符、算数运算符、位运算符、逻辑运算符、字符串运算符、条件运算符、逗号运算符、一元运算符、关系运算符
=
var foo = ["one", "two", "three"]; // 不使用解构 var one = foo[0]; var two = foo[1]; var three = foo[2]; // 使用解构 var [one, two, three] = foo;
算术运算符除了普通的加减乘除(+-*/)
a & b
a ^ b
~a
a << b
a >> b
a >>> b
我们先介绍一下有三个逻辑运算符,然后讲几个运用技巧
a && b
!a
false && anything //返回false true || anything //返回true true && anything //anything false || anything //anything`
false
true
条件 ? 值1 : 值2
例如:
var status = (age >= 18) ? "adult" : "minor";
这样会比if-else简便的多。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
总的知识点概览
语法、数据类型、运算、对象、function、继承、闭包、作用域、原型链、事件、RegExp、JSON、Ajax、DOM、BOM、内存泄漏、跨域、异步加载、模板引擎、前端MVC、前端MVVM、路由、模块化、Http、Canvas、jQuery、EMCAScript、ES6、NodeJS、Vue、React
运算符
运算符分类:赋值运算符、比较运算符、算数运算符、位运算符、逻辑运算符、字符串运算符、条件运算符、逗号运算符、一元运算符、关系运算符
赋值运算符
=
。比较运算符
算术运算符
算术运算符除了普通的加减乘除(+-*/)
位运算符
a & b
a ^ b
~a
a << b
a >> b
a >>> b
逻辑运算符
我们先介绍一下有三个逻辑运算符,然后讲几个运用技巧
a && b
!a
false
&& anything //返回falsetrue
|| anything //返回truetrue
&& anything //anythingfalse
|| anything //anything`条件运算符
例如:
var status = (age >= 18) ? "adult" : "minor";
这样会比if-else简便的多。
The text was updated successfully, but these errors were encountered: