javascript之数组操作1、数组的创建var arrayObj = new Array(); //创建一个数组var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限,是长度var arrayObj = new Array([element0...
分类:
编程语言 时间:
2015-05-13 16:19:28
阅读次数:
113
js数组的操作 1、数组的创建 var arrayObj = new Array(); //创建一个数组var arrayObj = new Array([size]); //创建一个数组并指定长度,注意不是上限,是长度var arrayObj = new Array([element0[, e.....
分类:
编程语言 时间:
2015-05-12 01:25:16
阅读次数:
138
Java 1.5发行版本中增加了可变参数方法。可变参数方法接受0个或者多个指定类型的参数。 可变参数机制通过先创建一个数组,数组的大小为在调用位置所传递的参数数量,然后将参数值传到数组中,最后将数组传递给方法。 这样由于可变参数的方法,可变参数时借助数组实现的的,所有调用可变参数的方法时,我们可以传...
分类:
其他好文 时间:
2015-05-08 12:24:57
阅读次数:
104
//base.js
var $=function(_this)//调用,把this传递过来
{
return new Base(_this);
};
//对象式
function Base(_this)
{
//创建一个数组来获取节点和节点的数组
this.elements=[];//私有化,不共用
if(_this!=u...
分类:
其他好文 时间:
2015-05-05 08:53:26
阅读次数:
92
//base.js
var $=function(_this)//调用,把this传递过来
{
return new Base(_this);
};
//对象式
function Base(_this)
{
//创建一个数组来获取节点和节点的数组
this.elements=[];//私有化,不共用
if(_this!=u...
分类:
其他好文 时间:
2015-05-04 10:10:00
阅读次数:
110
//Base.js
var $=function(_this)//调用,把this传递过来
{
return new Base(_this);
};
//对象式
function Base(_this)
{
//创建一个数组来获取节点和节点的数组
this.elements=[];//私有化,不共用
if(_this!=undef...
分类:
其他好文 时间:
2015-05-04 10:09:00
阅读次数:
130
var $=function(_this)//调用,把this传递过来
{
return new Base(_this);
};
//对象式
function Base(_this)
{
//创建一个数组来获取节点和节点的数组
this.elements=[];//私有化,不共用
if(_this!=undefined)//这里的_this...
分类:
其他好文 时间:
2015-04-30 08:54:51
阅读次数:
114
Base.js
var $=function()//调用
{
return new Base();
};
//对象式
function Base()
{
//创建一个数组来获取节点和节点的数组
this.elements=[];//私有化,不共用
}
//获取ID节点
Base.prototype.getId=function(id)...
分类:
Web程序 时间:
2015-04-30 08:54:40
阅读次数:
194
base.js/** * Created by zhouyan on 15/4/26. *///前台调用var $=function(_this){ return new Base(_this);}//基础库function Base(_this){ //创建一个数组,来保存获取的节点和...
分类:
其他好文 时间:
2015-04-28 22:19:22
阅读次数:
124
base.js/** * Created by zhouyan on 15/4/26. *///前台调用var $=function(_this){ return new Base(_this);}//基础库function Base(_this){ //创建一个数组,来保存获取的节点和...
分类:
其他好文 时间:
2015-04-27 23:14:16
阅读次数:
146