1.Math.PI 弧度转角度、
2.Math.random return [0,1)范围的数
3.Math.floor()/Math.ceil() 向下/向上取整、
4.三角函数 Math.sin/cos/tan
5.反三角函数 Math.asin/acos/atan
6.角度弧度相互转换、
7.Math.atan2(y,x) 返回一个坐标(y,x)对应的角度(-PI,PI]
8.Math.sqrt 开根号
数组的高级使用
1.array.length
2.遍历一个数组 for(var key in array)
3.插入push()末尾
4.查找对象在数组中所对应的索引 indexOf()
5.删除数组的某个元素 splice(开始索引,要删除的个数)
6.数组的排序
7.随机打乱一个数列
8.随机从一堆数据里抽取一个值
表的高级使用
1.遍历一个表 for(key in table){
table[key]==每个对应的数组/对象
}
2.表里共有多少个对象 Object.keys(obj).length
2.删除表里的数据 delete list_data[4]
字符串对象的高级使用
1.str.length
2.str.indexOf() 返回首次出现的位置
3.str.replace('要替换的内容','替换的内容')
4.toLowerCase,toUpperCase