#js相对复杂,先掌握基本的操作,通过"背面试题"增加对js的掌握能力。
未完待续!
1.javascript = ECMAScript + BOM +DOM
2.Undefined Null Boolean Number String Object
3. || && !
4. + - * / %
5.= == === >= <= != += -= *= /= %=
6.if do-while while for for...in switch break continue
7.函数的定义、使用
8.typeof instanceof
typeof 可以判定基本类型,instanceof 可以判定引用类型
9.作用域链
10.垃圾收集
11.Object Array
12.Array的方法
查找内容:indexOf() lastIndexOf()
堆栈方法:pop() push() shift() unshift()
转换方法:valueOf() toString()
生成字符串:join()
连接数组:concat()
数组排序:sort() reverse()
切割:slice() splice()
过滤数组:filter()
操作内容:map() forEach()
检测数组是否满足条件:some() every()
13.Date
14.RegExp
15.Function arguments this