数组的一些方法: var obj = new Array();
- Array.isArray(obj)判断是否是数组
 - obj.join(",");返回通过,连接的字符串
 - obj.push(ag1,arg2,...); obj.pop()(取最后一个元素);当做栈使用。
 - obj.unshift(arg1,arg2);obj.shift()(取第一个元素);当队列使用
 - obj.reverse();obj.sort(function compare);反转和排序;
 - obj.concat(arg1,arg2,...);连接
 - obj.slice(beginIndex[,endIndex]);截取
 - obj.splice(beginIndex,itemToDelete,arg1,arg2,...);替换或插入
 - obj.indexOf(arg) obj.lastIndexOf(arg);查找
 - 另外有 obj.every(function(item,index,array)) obj.some(function(item,index,array)) obj.filter(function(item,index,array)) obj.mapfunction(item,index,array)) obj.forEach(function(item,index,array));
 
Date的一些方法:
- new Date(); new Date(Date.parse("3/23/2003"));? new Date(Date.UTC(2003,11,30,18,19,20));代表12月20日,date的month从0开始。
 - Date.now();return current miles