-
typeof null==="object"查看全部
-
bind方法:【1改变函数this指向,2实现把函数拆分成子函数;】查看全部
-
new 调用 return 除非是对象,否则返回this [this会被初始化为默认空对象 对象原型为foo.prototype;]查看全部
-
函数名.length-形参个数 函数名.name-函数名查看全部
-
1:直接调用; 2:对象方法; 3:构造器; 4:apply、call、bind;查看全部
-
str.charAt(); Array.prototype.join.call(str, "_");查看全部
-
数组vs一般对象查看全部
-
array.isArray()查看全部
-
arr.lastIndexOf();从右向左检索数组;查看全部
-
arr.indexOf(查找数值,开始位置);数组检索;查看全部
-
arr.reduceRight(function(){});从右向左处理数组查看全部
-
arr.forEach(function(数组值,index, a->指向数组本身){}) arr.map(function(){});映射遍历数组,不会改变原数组; arr.filter(function(x, index){});筛选数组,不会改变原数组; arr.every(function(){});每一个都需要满足条件;返回true,false; arr.some(function(){});某一个元素是否满足条件,返回true,false; arr.reduce(function(){},可选参数);把数组元素两两操作,最终得到唯一值;查看全部
-
typeof(null) //objece typeof(Nan) //number typeof(undefined) //undefined查看全部
-
typeof(null) //objece typeof(Nan) //number typeof(undefined) //undefined查看全部
-
函数和作用域总结查看全部
举报
0/150
提交
取消