JS对象在用于搜索和分析数据上表现出十分便捷的作用,它们甚至连排列数字也不费吹灰之力。 Read More
posted @ 2015-10-28 20:14 Yaolina Views(116) Comments(0) Diggs(0)
posted @ 2015-10-28 20:10 Yaolina Views(151) Comments(0) Diggs(0)
posted @ 2015-10-28 20:05 Yaolina Views(196) Comments(0) Diggs(0)
posted @ 2015-10-28 20:01 Yaolina Views(195) Comments(0) Diggs(0)
static修饰的变量和方法直接用类进行调用,不需要先用new创建新的方法就能调用 Read More
posted @ 2015-10-28 19:57 Yaolina Views(808) Comments(0) Diggs(0)
Math对象是个organizational object(集合的对象),它只是数学相关的公用方法与常量的集合。Math对象中没有变量,即这个对象没有状态——不能用于存储任何事物。它唯一包含的数据只是几个常量,例如PI(3.14)。不过,Math对象的方法很好用。例如random()方法就能产生介于... Read More
posted @ 2015-10-28 19:55 Yaolina Views(163) Comments(0) Diggs(0)
1.toString方法用于任何对象转化为文本表达形式。2.数组和字符串事实上都是对象,依靠JavaScript的标准对象Array和String提供方法与数据的存储。3.Array对象的sort()方法能依任何顺序排列数组。4.String对象的indexOf()方法在字符串内搜索子字符串,返回搜... Read More
posted @ 2015-10-28 19:44 Yaolina Views(107) Comments(0) Diggs(0)
posted @ 2015-10-28 19:39 Yaolina Views(159) Comments(0) Diggs(0)
posted @ 2015-10-28 19:37 Yaolina Views(197) Comments(0) Diggs(0)
posted @ 2015-10-28 18:54 Yaolina Views(1155) Comments(0) Diggs(0)